Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2022.3.0 beta - Erreurs qui font que le tarif ne change pas bien et le unknown energy meter n'est plus comptabilisé #95

Closed
FrancoLoco opened this issue Feb 26, 2022 · 4 comments

Comments

@FrancoLoco
Copy link
Collaborator

Quelque chose a changé au niveau de la beta 2022.3.0 qui fait que le tarif ne change pas bien (entre le low et le medium) et aussi mon unknown energy meter n'est plus comptabilisé.

Je vois cette erreur en boucle dans mes logs:
2022-02-26 07:36:11 ERROR (MainThread) [custom_components.hilo] Unexpected error fetching hilo data: Cannot modify ReadOnlyDict
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
return await self.update_method()
File "/config/custom_components/hilo/init.py", line 406, in async_update
self.check_tarif()
File "/config/custom_components/hilo/init.py", line 459, in check_tarif
self.set_state("sensor.hilo_rate_current", target_cost.state)
File "/config/custom_components/hilo/init.py", line 419, in set_state
attrs["last_update"] = datetime.now()
File "/usr/src/homeassistant/homeassistant/util/read_only_dict.py", line 7, in _readonly
raise RuntimeError("Cannot modify ReadOnlyDict")
RuntimeError: Cannot modify ReadOnlyDict

@FrancoLoco
Copy link
Collaborator Author

J'ai déplacé cette ligne dans le IF comme ca et ca semble régler:
image

FrancoLoco added a commit to FrancoLoco/hilo-1 that referenced this issue Mar 1, 2022
FrancoLoco added a commit to FrancoLoco/hilo-1 that referenced this issue Mar 1, 2022
valleedelisle added a commit that referenced this issue Mar 1, 2022
@valleedelisle
Copy link
Contributor

Nice job @FrancoLoco

Merci pour la PR.

Mon home assistant est down pour le moment, j'essaie de migrer ça sur un raspberry pi avec un SSD, et mon lab est down aussi alors j'vais te truster là dessus.

@FrancoLoco
Copy link
Collaborator Author

@valleedelisle pourrais tu faire un release avec ceci inclus prochainement car HA 2022.3.0 est sorti officiellement aujourd’hui et ceux qui vont updater vont se mettre à avoir le trouble..? Merci!

@valleedelisle
Copy link
Contributor

C'est fait @FrancoLoco Merci encore!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants