Enable basic type checking in demo platforms (#66212)

* Adjust type hints in demo platforms

* Adjust mypy config

* Adjust name
This commit is contained in:
epenet 2022-02-10 10:05:58 +01:00 committed by GitHub
parent b3814aa4e6
commit ea325ef027
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 47 deletions

View file

@ -195,17 +195,17 @@ class DemoLight(LightEntity):
return self._color_mode
@property
def hs_color(self) -> tuple:
def hs_color(self) -> tuple[float, float]:
"""Return the hs color value."""
return self._hs_color
@property
def rgbw_color(self) -> tuple:
def rgbw_color(self) -> tuple[int, int, int, int]:
"""Return the rgbw color value."""
return self._rgbw_color
@property
def rgbww_color(self) -> tuple:
def rgbww_color(self) -> tuple[int, int, int, int, int]:
"""Return the rgbww color value."""
return self._rgbww_color