mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +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))
|
set_temp = self._set_operation_mode(self._mode_map.get(operation_mode))
|
||||||
|
|
||||||
if set_temp:
|
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)
|
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)
|
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)
|
success = self._client.set_setpoints(temp_low, temp_high)
|
||||||
else:
|
else:
|
||||||
success = False
|
success = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user