mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Exit when command_classes are missing thermostat Zwave (#2824)
This commit is contained in:
parent
9afb1d8c0d
commit
27e27ee156
@ -51,6 +51,11 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
if DEVICE_MAPPINGS[specific_sensor_key] == WORKAROUND_IGNORE:
|
||||
_LOGGER.debug("Remotec ZXT-120 Zwave Thermostat, ignoring")
|
||||
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)])
|
||||
_LOGGER.debug("discovery_info=%s and zwave.NETWORK=%s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user