mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
Fix bug in flaky rfxtrx test (#2107)
This commit is contained in:
parent
bfd64ce96e
commit
5f98a70c21
@ -37,10 +37,10 @@ class TestRFXTRX(unittest.TestCase):
|
|||||||
'automatic_add': True,
|
'automatic_add': True,
|
||||||
'devices': {}}}))
|
'devices': {}}}))
|
||||||
|
|
||||||
while len(rfxtrx.RFX_DEVICES) < 1:
|
while len(rfxtrx.RFX_DEVICES) < 2:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
self.assertEqual(len(rfxtrx.RFXOBJECT.sensors()), 1)
|
self.assertEqual(len(rfxtrx.RFXOBJECT.sensors()), 2)
|
||||||
|
|
||||||
def test_valid_config(self):
|
def test_valid_config(self):
|
||||||
"""Test configuration."""
|
"""Test configuration."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user