uiprotect 3.1.6__py3-none-any.whl → 3.1.7__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.

Potentially problematic release.


This version of uiprotect might be problematic. Click here for more details.

@@ -204,10 +204,9 @@ class WSPacket:
204
204
  def action_frame(self) -> BaseWSPacketFrame:
205
205
  if self._action_frame is None:
206
206
  self.decode()
207
-
208
- if self._action_frame is None:
209
- raise WSDecodeError("Packet unexpectedly not decoded")
210
-
207
+ if TYPE_CHECKING:
208
+ assert self._action_frame is not None
209
+ assert self._data_frame is not None
211
210
  self.__dict__["data_frame"] = self._data_frame
212
211
  return self._action_frame
213
212
 
@@ -215,10 +214,9 @@ class WSPacket:
215
214
  def data_frame(self) -> BaseWSPacketFrame:
216
215
  if self._data_frame is None:
217
216
  self.decode()
218
-
219
- if self._data_frame is None:
220
- raise WSDecodeError("Packet unexpectedly not decoded")
221
-
217
+ if TYPE_CHECKING:
218
+ assert self._action_frame is not None
219
+ assert self._data_frame is not None
222
220
  self.__dict__["action_frame"] = self._action_frame
223
221
  return self._data_frame
224
222
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: uiprotect
3
- Version: 3.1.6
3
+ Version: 3.1.7
4
4
  Summary: Python API for Unifi Protect (Unofficial)
5
5
  Home-page: https://github.com/uilibs/uiprotect
6
6
  License: MIT
@@ -21,7 +21,7 @@ uiprotect/data/devices.py,sha256=n2TVY0J-xhO7fXgrvC0hqsHjNc-B_DdySDKHOIKPeqs,110
21
21
  uiprotect/data/nvr.py,sha256=4EzeRFogmdT96VJ9yY17rqpUMx7NuKBRnUrgRbQ5YJs,47461
22
22
  uiprotect/data/types.py,sha256=3CocULpkdTgF4is1nIEDYIlwf2EOkNNM7L4kJ7NkAwM,17654
23
23
  uiprotect/data/user.py,sha256=YvgXJKV4_y-bm0eySWz9f_ie9aR5lpVn17t9H0Pix8I,6998
24
- uiprotect/data/websocket.py,sha256=vnn3FUc1H3e4dvA3INGob_asbmVCaA99H1DnwDEmpdw,6709
24
+ uiprotect/data/websocket.py,sha256=PO315ePmv4gwa-omFCPNvLAN1Enjkb9zAIjCdzmRlsg,6743
25
25
  uiprotect/exceptions.py,sha256=kgn0cRM6lTtgLza09SDa3ZiX6ue1QqHCOogQ4qu6KTQ,965
26
26
  uiprotect/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  uiprotect/release_cache.json,sha256=NamnSFy78hOWY0DPO87J9ELFCAN6NnVquv8gQO75ZG4,386
@@ -30,8 +30,8 @@ uiprotect/test_util/__init__.py,sha256=whiOUb5LfDLNT3AQG6ISiKtAqO2JnhCIdFavhWDK4
30
30
  uiprotect/test_util/anonymize.py,sha256=f-8ijU-_y9r-uAbhIPn0f0I6hzJpAkvJzc8UpWihObI,8478
31
31
  uiprotect/utils.py,sha256=3SJFF8qs1Jz8t3mD8qwc1hFSocolFjdXI_v4yVlC7o4,20088
32
32
  uiprotect/websocket.py,sha256=D5DZrMzo434ecp8toNxOB5HM193kVwYw42yEcg99yMw,8029
33
- uiprotect-3.1.6.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
34
- uiprotect-3.1.6.dist-info/METADATA,sha256=kvjDUNT1Q8B75cIVkrbdYm4em87HseeDcyJgQXlSttI,10982
35
- uiprotect-3.1.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
- uiprotect-3.1.6.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
37
- uiprotect-3.1.6.dist-info/RECORD,,
33
+ uiprotect-3.1.7.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
34
+ uiprotect-3.1.7.dist-info/METADATA,sha256=Fojhzsg5wyTfSca70SAEkDYH_mwt66DqasNBDpMpmME,10982
35
+ uiprotect-3.1.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
+ uiprotect-3.1.7.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
37
+ uiprotect-3.1.7.dist-info/RECORD,,