-
Notifications
You must be signed in to change notification settings - Fork 20
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
error with home assistant 2022.5 #49
Comments
I haven't upgraded yet, I'll take a look at the code at weekend unless someone beats me to it. |
The same problem |
Think I fixed it, running tests on my system, please confirm |
Yes, i do confirm it works now... But i had this error after restarting home assistant : Failed to send Power command to Broadlink Hysen Climate device:climate.main_thermostat, :'NoneType' object cannot be interpreted as an integer |
It seems the error was during home assistant core restart... Fix works ok |
Hysen stopped working after latest update:
Logger: homeassistant.components.climate
Source: components/climate/init.py:220
Integration: Climate (documentation, issues)
First occurred: 11:48:37 PM (2 occurrences)
Last logged: 11:48:37 PM
Error adding entities for domain climate with platform hysen
Error while setting up hysen platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 810, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 571, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 220, in state
return HVACMode(self.hvac_mode).value
File "/usr/local/lib/python3.9/enum.py", line 384, in call
return cls.new(cls, value)
File "/usr/local/lib/python3.9/enum.py", line 702, in new
raise ve_exc
ValueError: 'unavailable' is not a valid HVACMode
The text was updated successfully, but these errors were encountered: