Adjust ColorMode type hint in light (#70806)
* Adjust ColorMode type hint in light * Adjust components
This commit is contained in:
parent
906c12d8aa
commit
c0d8f94487
4 changed files with 22 additions and 22 deletions
|
@ -45,7 +45,7 @@ class OverkizLight(OverkizEntity, LightEntity):
|
|||
"""Initialize a device."""
|
||||
super().__init__(device_url, coordinator)
|
||||
|
||||
self._attr_supported_color_modes = set()
|
||||
self._attr_supported_color_modes: set[ColorMode] = set()
|
||||
|
||||
if self.executor.has_command(OverkizCommand.SET_RGB):
|
||||
self._attr_supported_color_modes.add(ColorMode.RGB)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue