Fix some homekit_controller pylint warnings and (local only) test failures (#76122)

This commit is contained in:
Jc2k
2022-08-04 11:30:37 +01:00
committed by GitHub
parent b7b965c9c9
commit d5695a2d86
3 changed files with 51 additions and 21 deletions

View File

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