Z-Wave: Rename customize to device_config [Breaking change] (#5933)

* Z-Wave: Rename customize to device_config

* Fix light

* Make entity id not required
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-02-12 23:55:27 -08:00
1 parent 41849eab06
commit 8ca3ca8564
3 files changed
+10 -80

No files matched your search

+1 -2
View File
@@ -17,7 +17,6 @@ from homeassistant.const import STATE_OFF, STATE_ON
from homeassistant.util.color import HASS_COLOR_MAX, HASS_COLOR_MIN, \
color_temperature_mired_to_kelvin, color_temperature_to_rgb, \
color_rgb_to_rgbw, color_rgbw_to_rgb
from homeassistant.helpers import customize
_LOGGER = logging.getLogger(__name__)
@@ -56,7 +55,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]]
name = '{}.{}'.format(DOMAIN, zwave.object_id(value))
node_config = customize.get_overrides(hass, zwave.DOMAIN, name)
node_config = hass.data[zwave.DATA_DEVICE_CONFIG].get(name)
refresh = node_config.get(zwave.CONF_REFRESH_VALUE)
delay = node_config.get(zwave.CONF_REFRESH_DELAY)
_LOGGER.debug('name=%s node_config=%s CONF_REFRESH_VALUE=%s'