Skip to content

Commit 7c7be1e

Browse files
committed
generate api class for humidity/temperature hysteresis
1 parent 4ebdcfd commit 7c7be1e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

plugwise_usb/api.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,37 @@ class SenseStatistics:
268268
humidity: float | None = None
269269

270270

271+
@dataclass(frozen=True)
272+
class SenseHysteresisConfig:
273+
"""Configuration of sense hysteresis switch.
274+
275+
Description: Configuration settings for sense hysteresis.
276+
When value is scheduled to be changed the returned value is the optimistic value
277+
278+
Attributes:
279+
humidity_enabled: bool | None: enable humidity hysteresis
280+
humidity_upper_bound: int | None: upper humidity switching value
281+
humidity_lower_bound: int | None: lower humidity switching value
282+
humidity_direction: bool | None: True switch on on increasing humidity, False switch off on increasing humidity
283+
temperature_enabled: bool | None: enable temperature hysteresis
284+
temperature_upper_bound: int | None: upper temperature switching value
285+
temperature_lower_bound: int | None: lower temperature switching value
286+
temperature_direction: bool | None: True switch on on increasing temperature, False switch off on increasing temperature
287+
dirty: bool: Settings changed, device update pending
288+
289+
"""
290+
291+
humidity_enabled: bool | None = None
292+
humidity_upper_bound: int | None = None
293+
humidity_lower_bound: int | None = None
294+
humidity_direction: bool | None = None
295+
temperature_enabled: bool | None = None
296+
temperature_upper_bound: int | None = None
297+
temperature_lower_bound: int | None = None
298+
temperature_direction: bool | None = None
299+
dirty: bool = False
300+
301+
271302
class PlugwiseNode(Protocol):
272303
"""Protocol definition of a Plugwise device node."""
273304

0 commit comments

Comments
 (0)