pyg90alarm 1.12.1__py3-none-any.whl → 1.13.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyg90alarm/alarm.py +8 -2
- {pyg90alarm-1.12.1.dist-info → pyg90alarm-1.13.0.dist-info}/METADATA +1 -1
- {pyg90alarm-1.12.1.dist-info → pyg90alarm-1.13.0.dist-info}/RECORD +6 -6
- {pyg90alarm-1.12.1.dist-info → pyg90alarm-1.13.0.dist-info}/WHEEL +1 -1
- {pyg90alarm-1.12.1.dist-info → pyg90alarm-1.13.0.dist-info}/LICENSE +0 -0
- {pyg90alarm-1.12.1.dist-info → pyg90alarm-1.13.0.dist-info}/top_level.txt +0 -0
pyg90alarm/alarm.py
CHANGED
|
@@ -434,7 +434,7 @@ class G90Alarm(G90DeviceNotifications):
|
|
|
434
434
|
alerts (only for `door` type sensors, if door open/close alerts are
|
|
435
435
|
enabled)
|
|
436
436
|
"""
|
|
437
|
-
_LOGGER.debug('
|
|
437
|
+
_LOGGER.debug('on_sensor_activity: %s %s %s', idx, name, occupancy)
|
|
438
438
|
sensor = await self.find_sensor(idx, name)
|
|
439
439
|
if sensor:
|
|
440
440
|
_LOGGER.debug('Setting occupancy to %s (previously %s)',
|
|
@@ -573,9 +573,15 @@ class G90Alarm(G90DeviceNotifications):
|
|
|
573
573
|
"""
|
|
574
574
|
sensor = await self.find_sensor(event_id, zone_name)
|
|
575
575
|
# The callback is still delivered to the caller even if the sensor
|
|
576
|
-
# isn't found, only `extra_data` is skipped. That is to
|
|
576
|
+
# isn't found, only `extra_data` is skipped. That is to ensure the
|
|
577
577
|
# important callback isn't filtered
|
|
578
578
|
extra_data = sensor.extra_data if sensor else None
|
|
579
|
+
# Invoke the sensor activity callback to set the sensor occupancy if
|
|
580
|
+
# sensor is known, but only if that isn't already set - it helps when
|
|
581
|
+
# device notifications on triggerring sensor's activity aren't receveid
|
|
582
|
+
# by a reason
|
|
583
|
+
if sensor and not sensor.occupancy:
|
|
584
|
+
await self.on_sensor_activity(event_id, zone_name, True)
|
|
579
585
|
|
|
580
586
|
G90Callback.invoke(
|
|
581
587
|
self._alarm_cb, event_id, zone_name, extra_data
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
pyg90alarm/__init__.py,sha256=zidYApReScSFZCpC9Tk7pdsBNPMql6XiUtt-O7l3D5M,1381
|
|
2
|
-
pyg90alarm/alarm.py,sha256=
|
|
2
|
+
pyg90alarm/alarm.py,sha256=YXEMBfqphGKlxR_w2DjYuVALxb0cpibSuqsxJUM3SyA,30394
|
|
3
3
|
pyg90alarm/base_cmd.py,sha256=rjpjIzEgtI5mUvmurBasrt9psYKdbIEsivnx8QboivY,8561
|
|
4
4
|
pyg90alarm/callback.py,sha256=zg698TCjjYhjAMk770J9CZp8-dDbX0Zj5wtoC6axq6w,4033
|
|
5
5
|
pyg90alarm/config.py,sha256=FiYjiz_WrDH2OEqHyUJXZDDK7v1fLAUpZcQ3JRMmmX0,1974
|
|
@@ -19,8 +19,8 @@ pyg90alarm/definitions/sensors.py,sha256=2Liap0stTT5qNmvsbP_7UscA21IYXQcSAKQLLm7
|
|
|
19
19
|
pyg90alarm/entities/__init__.py,sha256=hHb6AOiC4Tz--rOWiiICMdLaZDs1Tf_xpWk_HeS_gO4,66
|
|
20
20
|
pyg90alarm/entities/device.py,sha256=QbsQyIq2wFLjIH389zyD3d0CyME_rpG_ciD3srAdqXQ,2772
|
|
21
21
|
pyg90alarm/entities/sensor.py,sha256=AkVj_qrK35K5SwSlAHXU9UXdBKVaJzV4TBcoeZUevn4,13942
|
|
22
|
-
pyg90alarm-1.
|
|
23
|
-
pyg90alarm-1.
|
|
24
|
-
pyg90alarm-1.
|
|
25
|
-
pyg90alarm-1.
|
|
26
|
-
pyg90alarm-1.
|
|
22
|
+
pyg90alarm-1.13.0.dist-info/LICENSE,sha256=f884inRbeNv-O-hbwz62Ro_1J8xiHRTnJ2cCx6A0WvU,1070
|
|
23
|
+
pyg90alarm-1.13.0.dist-info/METADATA,sha256=JwJdi2ieWlGPCDscC6n3zyQokwVpmk0c0F_xHCg2HVU,7611
|
|
24
|
+
pyg90alarm-1.13.0.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
|
25
|
+
pyg90alarm-1.13.0.dist-info/top_level.txt,sha256=czHiGxYMyTk5QEDTDb0EpPiKqUMRa8zI4zx58Ii409M,11
|
|
26
|
+
pyg90alarm-1.13.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|