Skip to content

Commit 5cc68f9

Browse files
committed
simplify motion config dirty state
1 parent 04f44c3 commit 5cc68f9

File tree

3 files changed

+97
-126
lines changed

3 files changed

+97
-126
lines changed

plugwise_usb/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,14 @@ class MotionConfig:
233233
reset_timer: int | None: Motion reset timer in minutes before the motion detection is switched off.
234234
daylight_mode: bool | None: Motion detection when light level is below threshold.
235235
sensitivity_level: MotionSensitivity | None: Motion sensitivity level.
236+
dirty: bool: Settings changed, device update pending
236237
237238
"""
238239

239240
daylight_mode: bool | None = None
240241
reset_timer: int | None = None
241242
sensitivity_level: MotionSensitivity | None = None
243+
dirty: bool = False
242244

243245

244246
@dataclass

0 commit comments

Comments
 (0)