From 700e639ec621e400a6163bdf82d25a3552aeb15e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Oct 2020 23:58:17 -0500 Subject: [PATCH] Fix flapping pilight test (#41447) --- tests/components/pilight/test_init.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/components/pilight/test_init.py b/tests/components/pilight/test_init.py index 1e7e71f8236..24aa48ddf75 100644 --- a/tests/components/pilight/test_init.py +++ b/tests/components/pilight/test_init.py @@ -403,7 +403,8 @@ class TestPilightCallrateThrottler(unittest.TestCase): for i in range(3): action(i) - assert runs == [] + self.hass.block_till_done() + assert runs == [0] exp = [] now = dt_util.utcnow()