Refactor rfxtrx code

This commit is contained in:
Daniel committed 2016-04-24 13:42:59 +02:00
1 parent 55b51cb3fa
commit 2ca1f7542f
6 files changed
+125 -130

No files matched your search

+2 -2
View File
@@ -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."""