mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 18:18:21 +00:00
Fix Nanoleaf light turn_off transition (#57305)
This commit is contained in:
parent
c6d506cb4f
commit
1a78c461a0
@ -168,8 +168,8 @@ class NanoleafLight(LightEntity):
|
||||
|
||||
async def async_turn_off(self, **kwargs):
|
||||
"""Instruct the light to turn off."""
|
||||
transition = kwargs.get(ATTR_TRANSITION)
|
||||
await self._nanoleaf.turn_off(transition)
|
||||
transition: float | None = kwargs.get(ATTR_TRANSITION)
|
||||
await self._nanoleaf.turn_off(None if transition is None else int(transition))
|
||||
|
||||
async def async_update(self) -> None:
|
||||
"""Fetch new state data for this light."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user