new version and changed "key"

This commit is contained in:
Per Sandström committed 2016-04-22 20:02:54 +02:00
1 parent 276c2070be
commit a4083bab1a
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
hub.update_smartplugs()
switches = []
switches.extend([
VerisureSmartplug(value.id)
VerisureSmartplug(value.deviceLabel)
for value in hub.smartplug_status.values()])
add_devices(switches)