mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
commit
8ae5708fa2
@ -17,7 +17,7 @@ DEFAULT_NAME = 'ZWave Thermostat'
|
|||||||
|
|
||||||
REMOTEC = 0x5254
|
REMOTEC = 0x5254
|
||||||
REMOTEC_ZXT_120 = 0x8377
|
REMOTEC_ZXT_120 = 0x8377
|
||||||
REMOTEC_ZXT_120_THERMOSTAT = (REMOTEC, REMOTEC_ZXT_120, 0)
|
REMOTEC_ZXT_120_THERMOSTAT = (REMOTEC, REMOTEC_ZXT_120)
|
||||||
|
|
||||||
WORKAROUND_IGNORE = 'ignore'
|
WORKAROUND_IGNORE = 'ignore'
|
||||||
|
|
||||||
@ -40,13 +40,12 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
if (value.node.manufacturer_id.strip() and
|
if (value.node.manufacturer_id.strip() and
|
||||||
value.node.product_id.strip()):
|
value.node.product_id.strip()):
|
||||||
specific_sensor_key = (int(value.node.manufacturer_id, 16),
|
specific_sensor_key = (int(value.node.manufacturer_id, 16),
|
||||||
int(value.node.product_id, 16),
|
int(value.node.product_id, 16))
|
||||||
value.index)
|
|
||||||
if specific_sensor_key in DEVICE_MAPPINGS:
|
if specific_sensor_key in DEVICE_MAPPINGS:
|
||||||
if DEVICE_MAPPINGS[specific_sensor_key] == WORKAROUND_IGNORE:
|
if DEVICE_MAPPINGS[specific_sensor_key] == WORKAROUND_IGNORE:
|
||||||
_LOGGER.debug("Remotec ZXT-120 Zwave Thermostat, ignoring")
|
_LOGGER.debug("Remotec ZXT-120 Zwave Thermostat, ignoring")
|
||||||
return
|
return
|
||||||
else:
|
|
||||||
add_devices([ZWaveThermostat(value)])
|
add_devices([ZWaveThermostat(value)])
|
||||||
_LOGGER.debug("discovery_info=%s and zwave.NETWORK=%s",
|
_LOGGER.debug("discovery_info=%s and zwave.NETWORK=%s",
|
||||||
discovery_info, zwave.NETWORK)
|
discovery_info, zwave.NETWORK)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
"""Constants used by Home Assistant components."""
|
"""Constants used by Home Assistant components."""
|
||||||
|
|
||||||
__version__ = "0.19.1"
|
__version__ = "0.19.2"
|
||||||
REQUIRED_PYTHON_VER = (3, 4)
|
REQUIRED_PYTHON_VER = (3, 4)
|
||||||
|
|
||||||
PLATFORM_FORMAT = '{}.{}'
|
PLATFORM_FORMAT = '{}.{}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user