Move variables out of constructor in Nobo hub (#99617)
This commit is contained in:
parent
c1cfded355
commit
bc1575a477
1 changed files with 2 additions and 2 deletions
|
@ -74,6 +74,8 @@ class NoboZone(ClimateEntity):
|
||||||
_attr_max_temp = MAX_TEMPERATURE
|
_attr_max_temp = MAX_TEMPERATURE
|
||||||
_attr_min_temp = MIN_TEMPERATURE
|
_attr_min_temp = MIN_TEMPERATURE
|
||||||
_attr_precision = PRECISION_TENTHS
|
_attr_precision = PRECISION_TENTHS
|
||||||
|
_attr_hvac_modes = [HVACMode.HEAT, HVACMode.AUTO]
|
||||||
|
_attr_hvac_mode = HVACMode.AUTO
|
||||||
_attr_preset_modes = PRESET_MODES
|
_attr_preset_modes = PRESET_MODES
|
||||||
_attr_supported_features = SUPPORT_FLAGS
|
_attr_supported_features = SUPPORT_FLAGS
|
||||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||||
|
@ -85,8 +87,6 @@ class NoboZone(ClimateEntity):
|
||||||
self._id = zone_id
|
self._id = zone_id
|
||||||
self._nobo = hub
|
self._nobo = hub
|
||||||
self._attr_unique_id = f"{hub.hub_serial}:{zone_id}"
|
self._attr_unique_id = f"{hub.hub_serial}:{zone_id}"
|
||||||
self._attr_hvac_mode = HVACMode.AUTO
|
|
||||||
self._attr_hvac_modes = [HVACMode.HEAT, HVACMode.AUTO]
|
|
||||||
self._override_type = override_type
|
self._override_type = override_type
|
||||||
self._attr_device_info = DeviceInfo(
|
self._attr_device_info = DeviceInfo(
|
||||||
identifiers={(DOMAIN, f"{hub.hub_serial}:{zone_id}")},
|
identifiers={(DOMAIN, f"{hub.hub_serial}:{zone_id}")},
|
||||||
|
|
Loading…
Add table
Reference in a new issue