mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
use send_split_delay also when no transition is used
This commit is contained in:
parent
bf82beab82
commit
97bb2cf3de
1 changed files with 2 additions and 1 deletions
|
|
@ -874,7 +874,8 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity):
|
|||
if len(service_datas) == 2:
|
||||
transition = service_datas[0].get(ATTR_TRANSITION)
|
||||
if transition is not None:
|
||||
await asyncio.sleep(transition + self._send_split_delay / 1000.0)
|
||||
await asyncio.sleep(transition)
|
||||
await asyncio.sleep(self._send_split_delay / 1000.0)
|
||||
await turn_on(service_datas[1])
|
||||
|
||||
async def _update_attrs_and_maybe_adapt_lights(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue