Adjust ColorMode type hint in light (#70806)

* Adjust ColorMode type hint in light

* Adjust components
This commit is contained in:
epenet 2022-04-27 16:02:23 +02:00 committed by GitHub
parent 906c12d8aa
commit c0d8f94487
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 22 deletions

View file

@ -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)