Fix some homekit_controller pylint warnings and (local only) test failures (#76122)
This commit is contained in:
parent
b7b965c9c9
commit
d5695a2d86
3 changed files with 51 additions and 21 deletions
|
@ -107,9 +107,9 @@ class HomeKitLight(HomeKitEntity, LightEntity):
|
|||
return ColorMode.ONOFF
|
||||
|
||||
@property
|
||||
def supported_color_modes(self) -> set[ColorMode | str] | None:
|
||||
def supported_color_modes(self) -> set[ColorMode]:
|
||||
"""Flag supported color modes."""
|
||||
color_modes: set[ColorMode | str] = set()
|
||||
color_modes: set[ColorMode] = set()
|
||||
|
||||
if self.service.has(CharacteristicsTypes.HUE) or self.service.has(
|
||||
CharacteristicsTypes.SATURATION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue