From 754d98bcd5adc758fd1c280c40321e7c640cd779 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sat, 3 Dec 2016 14:06:08 +0100 Subject: [PATCH] Cleanups on homematic climate (#4685) --- homeassistant/components/climate/homematic.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/homeassistant/components/climate/homematic.py b/homeassistant/components/climate/homematic.py index d0d91ac7270..877447eb671 100644 --- a/homeassistant/components/climate/homematic.py +++ b/homeassistant/components/climate/homematic.py @@ -97,13 +97,9 @@ class HMThermostat(HMDevice, ClimateDevice): def set_temperature(self, **kwargs): """Set new target temperature.""" temperature = kwargs.get(ATTR_TEMPERATURE) - if not self.available: + if not self.available or temperature is None: return None - if temperature is None: - return - if self.current_operation == STATE_AUTO: - return self._hmdevice.actionNodeData('MANU_MODE', temperature) self._hmdevice.set_temperature(temperature) def set_operation_mode(self, operation_mode):