Add missing ToggleEntity type hints in fans (#73887)

This commit is contained in:
epenet
2022-06-23 12:01:05 +02:00
committed by GitHub
parent a3ce80baed
commit 48bd7cf5e1
10 changed files with 11 additions and 11 deletions

View File

@@ -107,7 +107,7 @@ class SmartyFan(FanEntity):
_LOGGER.debug("Turning on fan. percentage is %s", percentage)
self.set_percentage(percentage or DEFAULT_ON_PERCENTAGE)
def turn_off(self, **kwargs):
def turn_off(self, **kwargs: Any) -> None:
"""Turn off the fan."""
_LOGGER.debug("Turning off fan")
if not self._smarty.turn_off():