From d44de6dd2bb2853f9a9a61b8a51355c14b40b86b Mon Sep 17 00:00:00 2001 From: kennedyshead Date: Thu, 24 Oct 2019 16:03:29 +0200 Subject: [PATCH] Fix Venstar formatting to restore clean CI (#28171) --- homeassistant/components/venstar/climate.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/venstar/climate.py b/homeassistant/components/venstar/climate.py index 280e691337d..9e5450addc5 100644 --- a/homeassistant/components/venstar/climate.py +++ b/homeassistant/components/venstar/climate.py @@ -280,11 +280,20 @@ class VenstarThermostat(ClimateDevice): set_temp = self._set_operation_mode(self._mode_map.get(operation_mode)) if set_temp: - if self._mode_map.get(operation_mode, self._client.mode) == self._client.MODE_HEAT: + if ( + self._mode_map.get(operation_mode, self._client.mode) + == self._client.MODE_HEAT + ): success = self._client.set_setpoints(temperature, self._client.cooltemp) - elif self._mode_map.get(operation_mode, self._client.mode) == self._client.MODE_COOL: + elif ( + self._mode_map.get(operation_mode, self._client.mode) + == self._client.MODE_COOL + ): success = self._client.set_setpoints(self._client.heattemp, temperature) - elif self._mode_map.get(operation_mode, self._client.mode) == self._client.MODE_AUTO: + elif ( + self._mode_map.get(operation_mode, self._client.mode) + == self._client.MODE_AUTO + ): success = self._client.set_setpoints(temp_low, temp_high) else: success = False