mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-14 07:44:04 +02:00
shorter periods
This commit is contained in:
parent
2f0223d603
commit
aeeddd034a
1 changed files with 2 additions and 2 deletions
|
|
@ -797,10 +797,10 @@ async def test_auto_reset_manual_control(hass):
|
|||
)
|
||||
|
||||
# Do a couple of quick changes and check that light is not reset
|
||||
for i in range(3):
|
||||
for i in range(15): # do 15 changes to get to >0.1s
|
||||
_LOGGER.debug("Quick change %s", i)
|
||||
await turn_light(True, brightness=(i + 1) * 20)
|
||||
await asyncio.sleep(0.05) # Less than 0.1
|
||||
await asyncio.sleep(0.01) # Less than 0.1
|
||||
assert manual_control[light.entity_id]
|
||||
|
||||
await update()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue