shorter periods

This commit is contained in:
Bas Nijholt 2023-08-10 15:59:41 -07:00
commit aeeddd034a

View file

@ -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()