Skip to content

Commit

Permalink
Fix Venstar formatting to restore clean CI (#28171)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedyshead authored and MartinHjelmare committed Oct 24, 2019
1 parent dd9ca70 commit d44de6d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions homeassistant/components/venstar/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,20 @@ def set_temperature(self, **kwargs):
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
Expand Down

0 comments on commit d44de6d

Please sign in to comment.