Fix bug in rfxtrx for int device id (#2497)

This commit is contained in:
Daniel Høyer Iversen authored and Paulus Schoutsen committed 2016-07-12 01:45:22 -07:00
1 parent 6d60287455
commit 09a4336bc5
2 files changed
+19 -1

No files matched your search

+11
View File
@@ -34,6 +34,17 @@ class TestSwitchRfxtrx(unittest.TestCase):
rfxtrx_core.ATTR_FIREEVENT: True}
}}}))
def test_valid_config_int_device_id(self):
"""Test configuration."""
self.assertTrue(_setup_component(self.hass, 'switch', {
'switch': {'platform': 'rfxtrx',
'automatic_add': True,
'devices':
{'710000141010170': {
'name': 'Test',
rfxtrx_core.ATTR_FIREEVENT: True}
}}}))
def test_invalid_config1(self):
self.assertFalse(_setup_component(self.hass, 'switch', {
'switch': {'platform': 'rfxtrx',