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:
parent
c795597511
commit
20fec104e2
19 changed files with 88 additions and 61 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue