Refactor rfxtrx code
This commit is contained in:
1 parent
55b51cb3fa
commit
2ca1f7542f
6 files changed
+125
-130
No files matched your search
@@ -37,10 +37,10 @@ class TestRFXTRX(unittest.TestCase):
|
||||
'automatic_add': True,
|
||||
'devices': {}}}))
|
||||
|
||||
while len(rfxtrx.RFX_DEVICES) < 2:
|
||||
while len(rfxtrx.RFX_DEVICES) < 1:
|
||||
time.sleep(0.1)
|
||||
|
||||
self.assertEqual(len(rfxtrx.RFXOBJECT.sensors()), 2)
|
||||
self.assertEqual(len(rfxtrx.RFXOBJECT.sensors()), 1)
|
||||
|
||||
def test_valid_config(self):
|
||||
"""Test configuration."""
|
||||
|
||||
Reference in new issue
Block a user