Bug fixes for Wink

This commit is contained in:
Paulus Schoutsen committed 2015-01-15 21:25:24 -08:00
1 parent c116cb095d
commit 702498ca09
7 files changed
+193 -140

No files matched your search

+2 -2
View File
@@ -178,7 +178,7 @@ def setup(hass, config):
_LOGGER.info("Updating light states")
for light in lights.values():
light.update_ha_state(hass)
light.update_ha_state(hass, True)
update_lights_state(None)
@@ -196,7 +196,7 @@ def setup(hass, config):
for light in discovered:
if light is not None and light not in lights.values():
light.entity_id = util.ensure_unique_string(
ENTITY_ID_FORMAT.format(util.slugify(light.get_name())),
ENTITY_ID_FORMAT.format(util.slugify(light.name)),
lights.keys())
lights[light.entity_id] = light