diff --git a/homeassistant/components/advantage_air/light.py b/homeassistant/components/advantage_air/light.py index 0ee91c6fcbc16a5e4ff7e27272bd6a6c5a2e75d8..47c8c7c1768bdab8fad4fac9b20a829e33606076 100644 --- a/homeassistant/components/advantage_air/light.py +++ b/homeassistant/components/advantage_air/light.py @@ -83,7 +83,8 @@ class AdvantageAirLight(AdvantageAirEntity, LightEntity): class AdvantageAirLightDimmable(AdvantageAirLight): """Representation of Advantage Air Dimmable Light.""" - _attr_supported_color_modes = {ColorMode.ONOFF, ColorMode.BRIGHTNESS} + _attr_color_mode = ColorMode.BRIGHTNESS + _attr_supported_color_modes = {ColorMode.BRIGHTNESS} def __init__(self, instance: AdvantageAirData, light: dict[str, Any]) -> None: """Initialize an Advantage Air Dimmable Light.""" @@ -107,13 +108,15 @@ class AdvantageAirLightDimmable(AdvantageAirLight): class AdvantageAirThingLight(AdvantageAirThingEntity, LightEntity): """Representation of Advantage Air Light controlled by myThings.""" + _attr_color_mode = ColorMode.ONOFF _attr_supported_color_modes = {ColorMode.ONOFF} class AdvantageAirThingLightDimmable(AdvantageAirThingEntity, LightEntity): """Representation of Advantage Air Dimmable Light controlled by myThings.""" - _attr_supported_color_modes = {ColorMode.ONOFF, ColorMode.BRIGHTNESS} + _attr_color_mode = ColorMode.BRIGHTNESS + _attr_supported_color_modes = {ColorMode.BRIGHTNESS} @property def brightness(self) -> int: