Skip to content

Commit 0cfd3e7

Browse files
committed
Ruffed
1 parent 0488301 commit 0cfd3e7

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

plugwise/helper.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ def __init__(self) -> None:
279279
self.therms_with_offset_func: list[str] = []
280280

281281
def smile(self, name: str) -> bool:
282-
"""Helper-function checking the smile-name."""
283-
return self.smile_name == name
282+
"""Helper-function checking the smile-name."""
283+
return self.smile_name == name
284284

285285
def _all_locations(self) -> None:
286286
"""Collect all locations."""
@@ -1024,11 +1024,7 @@ def _get_measurement_data(self, dev_id: str) -> DeviceData:
10241024
data.pop("c_heating_state")
10251025
self._count -= 1
10261026

1027-
if (
1028-
self._is_thermostat
1029-
and self.smile(ANNA)
1030-
and dev_id == self._heater_id
1031-
):
1027+
if self._is_thermostat and self.smile(ANNA) and dev_id == self._heater_id:
10321028
# Anna+Elga: base cooling_state on the elga-status-code
10331029
if "elga_status_code" in data:
10341030
# Determine _cooling_present and _cooling_enabled

0 commit comments

Comments
 (0)