mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Fix attributes scope in Advantage Air Select platform (#76744)
This commit is contained in:
parent
516dc3372f
commit
94cd8e801b
@ -29,15 +29,15 @@ class AdvantageAirMyZone(AdvantageAirAcEntity, SelectEntity):
|
||||
"""Representation of Advantage Air MyZone control."""
|
||||
|
||||
_attr_icon = "mdi:home-thermometer"
|
||||
_attr_options = [ADVANTAGE_AIR_INACTIVE]
|
||||
_number_to_name = {0: ADVANTAGE_AIR_INACTIVE}
|
||||
_name_to_number = {ADVANTAGE_AIR_INACTIVE: 0}
|
||||
_attr_name = "MyZone"
|
||||
|
||||
def __init__(self, instance, ac_key):
|
||||
"""Initialize an Advantage Air MyZone control."""
|
||||
super().__init__(instance, ac_key)
|
||||
self._attr_unique_id += "-myzone"
|
||||
self._attr_options = [ADVANTAGE_AIR_INACTIVE]
|
||||
self._number_to_name = {0: ADVANTAGE_AIR_INACTIVE}
|
||||
self._name_to_number = {ADVANTAGE_AIR_INACTIVE: 0}
|
||||
|
||||
for zone in instance["coordinator"].data["aircons"][ac_key]["zones"].values():
|
||||
if zone["type"] > 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user