pyg90alarm 1.17.0__py3-none-any.whl → 1.17.1__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 CHANGED
@@ -915,7 +915,10 @@ class G90Alarm(G90DeviceNotifications):
915
915
  # notifications port
916
916
  self._handle_alert(
917
917
  (self._host, self._notifications_local_port),
918
- item.as_device_alert()
918
+ item.as_device_alert(),
919
+ # Skip verifying device GUID, since history entry
920
+ # don't have it
921
+ verify_device_id=False
919
922
  )
920
923
 
921
924
  # Record the entry as most recent one
@@ -208,13 +208,17 @@ class G90DeviceNotifications(DatagramProtocol):
208
208
  return False
209
209
 
210
210
  def _handle_alert(
211
- self, addr: Tuple[str, int], alert: G90DeviceAlert
211
+ self, addr: Tuple[str, int], alert: G90DeviceAlert,
212
+ verify_device_id: bool = True
212
213
  ) -> None:
213
214
  handled = False
214
215
 
215
216
  # Stop processing when alert is received from the device with different
216
- # GUID
217
- if self.device_id and alert.device_id != self.device_id:
217
+ # GUID (if enabled)
218
+ if (
219
+ verify_device_id and self.device_id
220
+ and alert.device_id != self.device_id
221
+ ):
218
222
  _LOGGER.error(
219
223
  "Received alert from wrong device: expected '%s', got '%s'",
220
224
  self.device_id, alert.device_id
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyg90alarm
3
- Version: 1.17.0
3
+ Version: 1.17.1
4
4
  Summary: G90 Alarm system protocol
5
5
  Home-page: https://github.com/hostcc/pyg90alarm
6
6
  Author: Ilia Sotnikov
@@ -1,10 +1,10 @@
1
1
  pyg90alarm/__init__.py,sha256=5AITRm5jZSzuQaL7PS8fZZMZb4-IuGRhSqyAdfTt0Cs,2236
2
- pyg90alarm/alarm.py,sha256=N4A-R3_R39FR2jtwuAtHr1r4H8H_1HxBMfNizYFOK1E,35773
2
+ pyg90alarm/alarm.py,sha256=GMft1R4Yp70VeWQLHApE8yVcfsDBbzhbHj1rc_gIj8k,35947
3
3
  pyg90alarm/base_cmd.py,sha256=Bz7yoZ0RpkcjWARya664DKAPo3goD6BeaKtuW-hA804,9902
4
4
  pyg90alarm/callback.py,sha256=3JsD_JChmZD24OyjaCP-PxxuBDBX7myGYhkM4RN7bk4,3742
5
5
  pyg90alarm/config.py,sha256=2YtIgdT7clQXmYvkdn_fhIdS05CY8E1Yc90R8_tAmRI,1961
6
6
  pyg90alarm/const.py,sha256=0EkfCtySEPi6W0TO-j-F1y7_MVFaMOuKDY1Bx6QGDDQ,6617
7
- pyg90alarm/device_notifications.py,sha256=2ZiQNKlSOFYK9eZgP_u4KtRuB9PG0o4Q9fS-Emi9MIw,16578
7
+ pyg90alarm/device_notifications.py,sha256=61oruR70snBRXNzOfj313TO7p2TmbEk-dH9AA1nkDkY,16687
8
8
  pyg90alarm/discovery.py,sha256=fwyBHDCKGej06OwhpbVCHYTRU9WWkeYysAFgv3FiwqI,3575
9
9
  pyg90alarm/exceptions.py,sha256=eiOcRe7D18EIPyPFDNU9DdFgbnkwPmkiLl8lGPOhBNw,1475
10
10
  pyg90alarm/history.py,sha256=5NfgB0V-7TZlMNHEjtRbOA0ZtJfQTgh2ysZIg5RM7ck,9080
@@ -20,8 +20,8 @@ pyg90alarm/definitions/sensors.py,sha256=rKOu21ZpI44xk6aMh_vBjniFqnsNTc1CKwAvnv4
20
20
  pyg90alarm/entities/__init__.py,sha256=hHb6AOiC4Tz--rOWiiICMdLaZDs1Tf_xpWk_HeS_gO4,66
21
21
  pyg90alarm/entities/device.py,sha256=f_LHvKCAqTEebZ4mrRh3CpPUI7o-OvpvOfyTRCbftJs,2818
22
22
  pyg90alarm/entities/sensor.py,sha256=4r8ouAYTZB8ih8I4ncWdQOaifYsRxaC-ukY9jvnrRvk,16139
23
- pyg90alarm-1.17.0.dist-info/LICENSE,sha256=f884inRbeNv-O-hbwz62Ro_1J8xiHRTnJ2cCx6A0WvU,1070
24
- pyg90alarm-1.17.0.dist-info/METADATA,sha256=LLdZ_3HEA3rIlt1VnNPSIrH5QR5OP68XrlcDT_FN6wk,7714
25
- pyg90alarm-1.17.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
26
- pyg90alarm-1.17.0.dist-info/top_level.txt,sha256=czHiGxYMyTk5QEDTDb0EpPiKqUMRa8zI4zx58Ii409M,11
27
- pyg90alarm-1.17.0.dist-info/RECORD,,
23
+ pyg90alarm-1.17.1.dist-info/LICENSE,sha256=f884inRbeNv-O-hbwz62Ro_1J8xiHRTnJ2cCx6A0WvU,1070
24
+ pyg90alarm-1.17.1.dist-info/METADATA,sha256=7lYmor4_swZNNn3P2yF7FRse5Hz4X3xpgAeNE55t0LA,7714
25
+ pyg90alarm-1.17.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
26
+ pyg90alarm-1.17.1.dist-info/top_level.txt,sha256=czHiGxYMyTk5QEDTDb0EpPiKqUMRa8zI4zx58Ii409M,11
27
+ pyg90alarm-1.17.1.dist-info/RECORD,,