Skip to content

Commit

Permalink
Move variables out of constructor in Nobo hub (#99617)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek committed Sep 4, 2023
1 parent c1cfded commit bc1575a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/nobo_hub/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ class NoboZone(ClimateEntity):
_attr_max_temp = MAX_TEMPERATURE
_attr_min_temp = MIN_TEMPERATURE
_attr_precision = PRECISION_TENTHS
_attr_hvac_modes = [HVACMode.HEAT, HVACMode.AUTO]
_attr_hvac_mode = HVACMode.AUTO
_attr_preset_modes = PRESET_MODES
_attr_supported_features = SUPPORT_FLAGS
_attr_temperature_unit = UnitOfTemperature.CELSIUS
Expand All @@ -85,8 +87,6 @@ def __init__(self, zone_id, hub: nobo, override_type) -> None:
self._id = zone_id
self._nobo = hub
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._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, f"{hub.hub_serial}:{zone_id}")},
Expand Down

0 comments on commit bc1575a

Please sign in to comment.