High and low target temps are also supported if target is supported

pull/17645/head
kbickar 2018-10-27 15:54:41 -04:00
parent ebe233cd32
commit 66b33dc2b8
1 changed files with 2 additions and 0 deletions

View File

@ -631,6 +631,8 @@ class MqttClimate(MqttAvailability, MqttDiscoveryUpdate, ClimateDevice):
if (self._topic[CONF_TEMPERATURE_STATE_TOPIC] is not None) or \
(self._topic[CONF_TEMPERATURE_COMMAND_TOPIC] is not None):
support |= SUPPORT_TARGET_TEMPERATURE
support |= SUPPORT_TARGET_TEMPERATURE_HIGH
support |= SUPPORT_TARGET_TEMPERATURE_LOW
if (self._topic[CONF_MODE_COMMAND_TOPIC] is not None) or \
(self._topic[CONF_MODE_STATE_TOPIC] is not None):