Skip to content
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

Move variables out of constructor in Nobo hub #99617

Merged
merged 1 commit into from
Sep 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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