Bugfixes to make Wink component work

This commit is contained in:
Paulus Schoutsen committed 2015-01-11 14:21:44 -08:00
1 parent 6cd53f2ddf
commit 9db1f3f8b7
3 files changed
+8 -4

No files matched your search

+4 -2
View File
@@ -35,9 +35,9 @@ def setup(hass, config):
('light', pywink.get_bulbs, DISCOVER_LIGHTS),
('switch', pywink.get_switches, DISCOVER_SWITCHES)):
component = get_component(component_name)
if func_exists():
component = get_component(component_name)
# Ensure component is loaded
if component.DOMAIN not in hass.components:
# Add a worker on succesfull setup
@@ -49,3 +49,5 @@ def setup(hass, config):
ATTR_SERVICE: discovery_type,
ATTR_DISCOVERED: {}
})
return True