Skip to content

Commit

Permalink
Exit when command_classes are missing thermostat Zwave (home-assistan…
Browse files Browse the repository at this point in the history
  • Loading branch information
turbokongen authored and balloob committed Aug 16, 2016
1 parent 9afb1d8 commit 27e27ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions homeassistant/components/thermostat/zwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 27e27ee

Please sign in to comment.