Fix Venstar formatting to restore clean CI (#28171)

This commit is contained in:
kennedyshead 2019-10-24 16:03:29 +02:00 committed by Martin Hjelmare
parent dd9ca70e96
commit d44de6dd2b

View File

@ -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