Bugfixes for pilight hub component and unit tests (#3948)

This commit is contained in:
David-Leon Pohl authored and Johann Kellerman committed 2016-10-19 22:02:11 +02:00
1 parent 5799d1aec9
commit 081e61528d
4 files changed
+301 -4

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ from homeassistant.const import (
EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP, CONF_HOST, CONF_PORT,
CONF_WHITELIST)
REQUIREMENTS = ['pilight==0.0.2']
REQUIREMENTS = ['pilight==0.1.1']
_LOGGER = logging.getLogger(__name__)
@@ -102,7 +102,7 @@ def setup(hass, config):
if not whitelist:
hass.bus.fire(EVENT, data)
# Check if data matches the defined whitelist
elif all(data[key] in whitelist[key] for key in whitelist):
elif all(str(data[key]) in whitelist[key] for key in whitelist):
hass.bus.fire(EVENT, data)
pilight_client.set_callback(handle_received_code)