ZWave lights: Not use super() (#4476)

* Not use super

* Review changes
This commit is contained in:
John Arild Berentsen authored and Paulus Schoutsen committed 2016-11-20 11:49:54 -08:00
1 parent 0f90426023
commit 123f4acfc1
2 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
node = zwave.NETWORK.nodes[discovery_info[zwave.const.ATTR_NODE_ID]]
value = node.values[discovery_info[zwave.const.ATTR_VALUE_ID]]
customize = hass.data['zwave_customize']
name = super().entity_id
name = '{}.{}'.format(DOMAIN, zwave.object_id(value))
node_config = customize.get(name, {})
refresh = node_config.get(zwave.CONF_REFRESH_VALUE)
delay = node_config.get(zwave.CONF_REFRESH_DELAY)