Skip to content

Commit 0222d29

Browse files
committed
bouwew: improve naming of state variables
1 parent 557a2a7 commit 0222d29

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugwise_usb/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ class SenseStatistics:
302302

303303
temperature: float | None = None
304304
humidity: float | None = None
305-
temperature_state: bool | None = None
306-
humidity_state: bool | None = None
305+
temperature_hysteresis_state: bool | None = None
306+
humidity_hysteresis_state: bool | None = None
307307

308308

309309
class PlugwiseNode(Protocol):

plugwise_usb/nodes/sense.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,9 @@ async def _hysteresis_state_update(
592592
switch_state,
593593
)
594594
if switch_group == 1:
595-
self._sense_statistics.humidity_state = switch_state
595+
self._sense_statistics.humidity_hysteresis_state = switch_state
596596
elif switch_group == 2:
597-
self._sense_statistics.temperature_state = switch_state
597+
self._sense_statistics.temperature_hysteresis_state = switch_state
598598
else:
599599
_LOGGER.debug(
600600
"Ignoring unknown switch_group %s for %s", switch_group, self.name

0 commit comments

Comments
 (0)