Closed slovdahl closed 3 months ago
The get_*_errors
methods in bosch_thermostat_client/db/__init__.py
are unfortunately still not async friendly. I'm not sure how to make them async friendly, as the methods are called in field initializers. I suspect we may have to rethink it a bit to make it work fine in Home Assistant going forward.
The
get_*_errors
methods inbosch_thermostat_client/db/__init__.py
are unfortunately still not async friendly. I'm not sure how to make them async friendly, as the methods are called in field initializers. I suspect we may have to rethink it a bit to make it work fine in Home Assistant going forward.
I would suggest loading the errors into the BaseGateway
object and reference them from there. I'll have a look if I can implement this.
EDIT: Opened https://github.com/slovdahl/bosch-thermostat-client-python/pull/1 to refactor getting the errors as well.
@rikroe nice, thank you!
Should solve one of the warnings reported in https://github.com/bosch-thermostat/home-assistant-bosch-custom-component/issues/420.
Needed for fixing Home Assistant problems like: