From 94cd8e801b8be60d8dc58e943fc6a59353aa56f2 Mon Sep 17 00:00:00 2001 From: Brett Adams Date: Fri, 26 Aug 2022 19:04:38 +1000 Subject: [PATCH] Fix attributes scope in Advantage Air Select platform (#76744) --- homeassistant/components/advantage_air/select.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/advantage_air/select.py b/homeassistant/components/advantage_air/select.py index 97ec0f9705c..f6c46cb7f87 100644 --- a/homeassistant/components/advantage_air/select.py +++ b/homeassistant/components/advantage_air/select.py @@ -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: