Skip to content

Commit 3f73c1b

Browse files
committed
Ruff fixes
1 parent ed4ee26 commit 3f73c1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ def _control_state(self, data: GwEntityData) -> str | bool:
797797
Represents the heating/cooling demand-state of the local primary thermostat.
798798
Note: heating or cooling can still be active when the setpoint has been reached.
799799
"""
800-
800+
801801
if (ctrl_state := data["thermostat"].get("control_state")) is not None:
802802
data["thermostat"].pop("control_state")
803803
self._count -= 1

plugwise/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def format_measure(measure: str, unit: str) -> float | int | str:
197197
"""Format measure to correct type."""
198198
try:
199199
float_measure = float(measure)
200-
except ValueError as exc:
200+
except ValueError:
201201
return measure # return string
202202

203203
if unit == PERCENTAGE and 0 < float_measure <= 1:

0 commit comments

Comments
 (0)