Read and write to state object using attributes, not as dict #78

Open
opened 2023-12-27 08:20:44 +00:00 by thomasjsn · 0 comments
thomasjsn commented 2023-12-27 08:20:44 +00:00 (Migrated from git.homelab.no)

Instead of:

self.data["state"] = alarm_state

Do:

self.data.state = alarm_state
Instead of: ```python self.data["state"] = alarm_state ``` Do: ```python self.data.state = alarm_state ```
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#78
No description provided.