mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-10-08 02:17:22 +02:00
Before scheduling turn_on do a last-minute check if lights are off (#671)
* Before scheduling turn_on do a last-minute check if lights are off * Pass force * add comment * fix for proactive * commetn * No default for force * rm newline * no force * Return bool
This commit is contained in:
parent
53ed220fa0
commit
e0e04da0f6
4 changed files with 27 additions and 1 deletions
|
|
@ -312,6 +312,7 @@ async def test_prepare_adaptation_data(
|
|||
service_data,
|
||||
split,
|
||||
filter_by_state,
|
||||
force=False,
|
||||
)
|
||||
|
||||
generated_service_datas = [item async for item in data.service_call_datas]
|
||||
|
|
|
|||
|
|
@ -1342,6 +1342,7 @@ async def test_cancellable_service_calls_task(hass):
|
|||
context,
|
||||
0,
|
||||
_create_service_call_data_iterator(hass, [service_data], False),
|
||||
force=False,
|
||||
max_length=1,
|
||||
which="both",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue