Improve type hints in light [a-i] (#75936)

* Improve type hints in ads light

* Improve type hints in avea light

* Improve type hints in avion light

* Improve type hints in broadlink light

* More type hints

* One more
This commit is contained in:
epenet 2022-07-31 20:46:13 +02:00 committed by GitHub
parent c795597511
commit 20fec104e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 88 additions and 61 deletions

View file

@ -1,5 +1,7 @@
"""Support for Dynalite channels as lights."""
from typing import Any
from homeassistant.components.light import ColorMode, LightEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
@ -35,10 +37,10 @@ class DynaliteLight(DynaliteBase, LightEntity):
"""Return true if device is on."""
return self._device.is_on
async def async_turn_on(self, **kwargs) -> None:
async def async_turn_on(self, **kwargs: Any) -> None:
"""Turn the light on."""
await self._device.async_turn_on(**kwargs)
async def async_turn_off(self, **kwargs) -> None:
async def async_turn_off(self, **kwargs: Any) -> None:
"""Turn the light off."""
await self._device.async_turn_off(**kwargs)