python-terminusgps 25.0.1__py3-none-any.whl → 25.0.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 25.0.1
3
+ Version: 25.0.2
4
4
  Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
5
5
  Project-URL: Documentation, https://app.terminusgps.com/docs/apps/python-terminusgps/index.html
6
6
  Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
@@ -27,10 +27,10 @@ terminusgps/wialon/items/base.py,sha256=nCh635XgF68YjlppbGYZeG2wah7Ic_aSc7RM2AKO
27
27
  terminusgps/wialon/items/resource.py,sha256=qmQKEakJa9LH5YkI9-iBDA0hsotc5ctcwdb7kZuXdfQ,14549
28
28
  terminusgps/wialon/items/retranslator.py,sha256=8q9EDc92w92MElnHIeEzH3Ra4kiPXrx4t9V5nPDZuRU,3728
29
29
  terminusgps/wialon/items/route.py,sha256=PTJx1gmT_PGz7nlSSUS2VzjYD-aAuvkEOIdIFneUSSQ,1148
30
- terminusgps/wialon/items/unit.py,sha256=K0kmzFEInR3dAQVtMUA6M7KNy7HlD5IKl7f7YElr2sQ,9116
30
+ terminusgps/wialon/items/unit.py,sha256=uHQrauVkh2556kZp0Dh3WLZvQ6WJIWkibGgPYW1ljPE,9177
31
31
  terminusgps/wialon/items/unit_group.py,sha256=Stp-WfCGbOqcnxV6FU1AKtV7KIxIwCHa0NwhNJfgRoM,5032
32
32
  terminusgps/wialon/items/user.py,sha256=INwAibQVmjNNelepQXMfDevgJqMvIjHHgEjAMLRvhB0,7082
33
- python_terminusgps-25.0.1.dist-info/METADATA,sha256=euQAuccWdEFn4rPRUHTsel4R_HD39SU7yQvLiyngS2k,946
34
- python_terminusgps-25.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
35
- python_terminusgps-25.0.1.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
- python_terminusgps-25.0.1.dist-info/RECORD,,
33
+ python_terminusgps-25.0.2.dist-info/METADATA,sha256=V68lUH5lPEzK8IL-_PS1bndlepZG4I_Y58ivHXb20oc,946
34
+ python_terminusgps-25.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
35
+ python_terminusgps-25.0.2.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
+ python_terminusgps-25.0.2.dist-info/RECORD,,
@@ -47,10 +47,12 @@ class WialonUnit(WialonBase):
47
47
  [flags.DATAFLAG_UNIT_ADVANCED_PROPERTIES, flags.DATAFLAG_UNIT_IMAGE]
48
48
  ),
49
49
  }
50
- ).get("item", {})
51
- self._imei_number = response.get("uid")
52
- self._active = response.get("act", False)
53
- self._image_uri = response.get("uri")
50
+ )
51
+ if response is not None:
52
+ item = response.get("item", {})
53
+ self._imei_number = item.get("uid")
54
+ self._active = item.get("act", False)
55
+ self._image_uri = item.get("uri")
54
56
 
55
57
  def get_position(self) -> dict:
56
58
  return self.session.wialon_api.core_search_item(