Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add callbacks for tamper and door open when arming #50

Merged
merged 1 commit into from
Dec 28, 2024

Conversation

hostcc
Copy link
Owner

@hostcc hostcc commented Dec 28, 2024

  • G90DeviceNotifications class now handles door open when arming (via on_door_open_when_arming method) and tamper (via additional argument to on_alarm method) notifications
  • G90Sensor class now has tamper_callback and door_open_when_arming_callback properties for callbacks, which are invoked when the sensor reports the corresponding conditions. Additionally is_tampered and is_door_open_when_arming properties are added to the class to indicate those conditions on the sensor - the conditionas are reset when the panel is armed/disarmed
  • G90Alarm class now has tamper_callback and door_open_when_arming_callback properties for callbacks similar to sensor ones above, but global on_sensor_activity

* `G90DeviceNotifications` class now handles door open when arming
  (via `on_door_open_when_arming` method) and tamper (via additional
  argument to `on_alarm` method) notifications
* `G90Sensor` class now has `tamper_callback` and
  `door_open_when_arming_callback` properties for callbacks,
  which are invoked when the sensor reports the corresponding
  conditions. Additionally `is_tampered` and `is_door_open_when_arming`
  properties are added to the class to indicate those conditions on the
  sensor - the conditionas are reset when the panel is armed/disarmed
* `G90Alarm` class now has `tamper_callback` and
  `door_open_when_arming_callback` properties for callbacks similar to sensor ones above,
  but global on_sensor_activity
@hostcc hostcc added the enhancement New feature or request label Dec 28, 2024
@hostcc hostcc self-assigned this Dec 28, 2024
Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@hostcc hostcc merged commit 8aad8d3 into master Dec 28, 2024
10 of 11 checks passed
@hostcc hostcc deleted the feat/tamper-door-open-when-arming-callbacks branch December 28, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant