From aeeddd034a8b5390c40ea904186c541bdb924b80 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Thu, 10 Aug 2023 15:59:41 -0700 Subject: [PATCH] shorter periods --- tests/test_switch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_switch.py b/tests/test_switch.py index 484bdb83..e0127ecf 100644 --- a/tests/test_switch.py +++ b/tests/test_switch.py @@ -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()