Skip to content
Snippets Groups Projects
Commit 432f6569 authored by Tyler Page's avatar Tyler Page Committed by Franck Nijhof
Browse files

Venstar: define success for all branches of set_temperature() (#26148)

* define success for all branches

* add operation_mode to error when unexpected value

* fix black linting

* black linting

* fix weird black linting result
parent f704a8e9
No related merge requests found
......@@ -265,9 +265,11 @@ class VenstarThermostat(ClimateDevice):
elif operation_mode == self._client.MODE_AUTO:
success = self._client.set_setpoints(temp_low, temp_high)
else:
success = False
_LOGGER.error(
"The thermostat is currently not in a mode "
"that supports target temperature"
"that supports target temperature: %s",
operation_mode,
)
if not success:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment