From 27e27ee1569faf79f66815e37eb1becead075c89 Mon Sep 17 00:00:00 2001 From: John Arild Berentsen Date: Tue, 16 Aug 2016 07:13:49 +0200 Subject: [PATCH] Exit when command_classes are missing thermostat Zwave (#2824) --- homeassistant/components/thermostat/zwave.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/thermostat/zwave.py b/homeassistant/components/thermostat/zwave.py index bd5e5d04b58..d44e6b5f70a 100644 --- a/homeassistant/components/thermostat/zwave.py +++ b/homeassistant/components/thermostat/zwave.py @@ -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",