From f4289b3fca0ff47311f645e7ca44961323f36388 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 22 May 2021 19:48:58 +0200 Subject: [PATCH] Improve supported_color_modes typing in Light (#50969) --- homeassistant/components/light/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/light/__init__.py b/homeassistant/components/light/__init__.py index 83361380918..bd1f21f8ecb 100644 --- a/homeassistant/components/light/__init__.py +++ b/homeassistant/components/light/__init__.py @@ -570,7 +570,7 @@ class LightEntity(ToggleEntity): _attr_rgb_color: tuple[int, int, int] | None = None _attr_rgbw_color: tuple[int, int, int, int] | None = None _attr_rgbww_color: tuple[int, int, int, int, int] | None = None - _attr_supported_color_modes: set | None = None + _attr_supported_color_modes: set[str] | None = None _attr_supported_features: int = 0 _attr_xy_color: tuple[float, float] | None = None @@ -821,7 +821,7 @@ class LightEntity(ToggleEntity): return supported_color_modes @property - def supported_color_modes(self) -> set | None: + def supported_color_modes(self) -> set[str] | None: """Flag supported color modes.""" return self._attr_supported_color_modes