Exit when command_classes are missing thermostat Zwave (#2824)
This commit is contained in:
parent
9afb1d8c0d
commit
27e27ee156
1 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,11 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
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
|
||||||
|
if not (value.node.get_values_for_command_class(
|
||||||
|
COMMAND_CLASS_SENSOR_MULTILEVEL) and
|
||||||
|
value.node.get_values_for_command_class(
|
||||||
|
COMMAND_CLASS_THERMOSTAT_SETPOINT)):
|
||||||
|
return
|
||||||
|
|
||||||
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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue