When arming fails; show what sensor was not clear #27

Closed
opened 2022-12-09 09:20:54 +00:00 by thomasjsn · 0 comments
thomasjsn commented 2022-12-09 09:20:54 +00:00 (Migrated from git.homelab.no)

This works for zones, since dict:

zones_not_clear = ", ".join([k for k, o in zones.items() if o.get()])

But it doesn't work for home_zones, since this is list:

home_zones = [v for k, v in zones.items() if v.arm_home]
This works for `zones`, since `dict`: ``` zones_not_clear = ", ".join([k for k, o in zones.items() if o.get()]) ``` But it doesn't work for `home_zones`, since this is `list`: ``` home_zones = [v for k, v in zones.items() if v.arm_home] ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thomas/rpi-alarm#27
No description provided.