mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix Venstar formatting to restore clean CI (#28171)
This commit is contained in:
parent
dd9ca70e96
commit
d44de6dd2b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user