zlangbert / ha-daikinone

Home Assistant integration for Daikin One HVAC systems and thermostats
13 stars 7 forks source link

fix startup error when thermostat not set to auto #15

Closed zlangbert closed 8 months ago

zlangbert commented 8 months ago

_attr_target_temperature_low and _attr_target_temperature_high attributes must be initialized otherwise HA CachedProperties doesn't create a backing prop. If they are not initialized, climate will error during setup because we support TARGET_TEMPERATURE_RANGE and it tries to read them. These attributes are not initialized in ClimateEntity like most others, and in a case where the thermostat is not set to auto, they do not get set in async_update either.

Ref #14