From dee07b25a292128cba839ca0051ff83744bee00c Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 28 Jan 2026 13:32:11 +0100 Subject: [PATCH] Improve decora_wifi light type hints (#161759) --- homeassistant/components/decora_wifi/light.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/decora_wifi/light.py b/homeassistant/components/decora_wifi/light.py index 40a9da49f5d..4efc06a11ff 100644 --- a/homeassistant/components/decora_wifi/light.py +++ b/homeassistant/components/decora_wifi/light.py @@ -103,14 +103,14 @@ class DecoraWifiLight(LightEntity): self._attr_unique_id = switch.serial @property - def color_mode(self) -> str: + def color_mode(self) -> ColorMode: """Return the color mode of the light.""" if self._switch.canSetLevel: return ColorMode.BRIGHTNESS return ColorMode.ONOFF @property - def supported_color_modes(self) -> set[str] | None: + def supported_color_modes(self) -> set[ColorMode]: """Flag supported color modes.""" return {self.color_mode}