pymammotion 0.4.3__py3-none-any.whl → 0.4.4__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.
- pymammotion/data/model/device.py +1 -0
- pymammotion/data/model/report_info.py +1 -1
- pymammotion/http/http.py +3 -0
- {pymammotion-0.4.3.dist-info → pymammotion-0.4.4.dist-info}/METADATA +1 -1
- {pymammotion-0.4.3.dist-info → pymammotion-0.4.4.dist-info}/RECORD +7 -7
- {pymammotion-0.4.3.dist-info → pymammotion-0.4.4.dist-info}/LICENSE +0 -0
- {pymammotion-0.4.3.dist-info → pymammotion-0.4.4.dist-info}/WHEEL +0 -0
pymammotion/data/model/device.py
CHANGED
@@ -24,6 +24,7 @@ class MowingDevice(DataClassORJSONMixin):
|
|
24
24
|
|
25
25
|
name: str = ""
|
26
26
|
online: bool = True
|
27
|
+
enabled: bool = True
|
27
28
|
mower_state: MowerInfo = field(default_factory=MowerInfo)
|
28
29
|
mqtt_properties: ThingPropertiesMessage | None = None
|
29
30
|
status_properties: ThingStatusMessage | None = None
|
@@ -121,6 +121,6 @@ class ReportData(DataClassORJSONMixin):
|
|
121
121
|
self.dev = DeviceData.from_dict(data.get("dev", self.dev.to_dict()))
|
122
122
|
self.rtk = RTKData.from_dict(data.get("rtk", self.rtk.to_dict()))
|
123
123
|
self.maintenance = Maintain.from_dict(data.get("maintain", self.maintenance.to_dict()))
|
124
|
-
self.vision_info = VisionInfo.from_dict(data.get("vio_to_app_info",
|
124
|
+
self.vision_info = VisionInfo.from_dict(data.get("vio_to_app_info", VisionInfo(0, 0, 0, 0, 0, 0, 0).to_dict()))
|
125
125
|
self.locations = locations
|
126
126
|
self.work = WorkData.from_dict(data.get("work", self.work.to_dict()))
|
pymammotion/http/http.py
CHANGED
@@ -130,6 +130,9 @@ class MammotionHTTP:
|
|
130
130
|
return Response.from_dict({"status": resp.status, "msg": "Login failed"})
|
131
131
|
data = await resp.json()
|
132
132
|
login_response = Response[LoginResponseData].from_dict(data)
|
133
|
+
if login_response.data is None:
|
134
|
+
print(login_response)
|
135
|
+
return Response.from_dict({"status": resp.status, "msg": "Login failed"})
|
133
136
|
self.login_info = LoginResponseData.from_dict(login_response.data)
|
134
137
|
self._headers["Authorization"] = (
|
135
138
|
f"Bearer {self.login_info.access_token}" if login_response.data else None
|
@@ -23,7 +23,7 @@ pymammotion/const.py,sha256=lWRxvTVdXnNHuxqvRkjO5ziK0Ic-fZMM6J2dbe5M6Nc,385
|
|
23
23
|
pymammotion/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
24
|
pymammotion/data/model/__init__.py,sha256=aSyroxYQQS-WMRi6WmWm2js4wLa9nmsi160gx9tts4o,323
|
25
25
|
pymammotion/data/model/account.py,sha256=vJM-KTf2q6eBfVC-UlNHBSmJvqHiCawZ40vnuhXhaz8,140
|
26
|
-
pymammotion/data/model/device.py,sha256=
|
26
|
+
pymammotion/data/model/device.py,sha256=GRKaXPocoetyekHo4DQtPKmJQH9v7ksZvGxe0XgmnLc,6892
|
27
27
|
pymammotion/data/model/device_config.py,sha256=wjayKnzoPDmBhqWZKTPDSueNEPCIWCB20tFEDSGIUsM,2602
|
28
28
|
pymammotion/data/model/device_info.py,sha256=Q0qJ6BflQycH_VFugwaFFXcvM69q2v9JAe2wWOcCggE,904
|
29
29
|
pymammotion/data/model/device_limits.py,sha256=m8HdxD-RaAkPm7jHYb9GLxMEH9IfzBPz0ZypmsLnId4,1946
|
@@ -38,7 +38,7 @@ pymammotion/data/model/plan.py,sha256=wGlcJT-w0EdbWK9jI838TCOm_MABFg7WoR664VB8RW
|
|
38
38
|
pymammotion/data/model/rapid_state.py,sha256=mIdhAG_LZXpVcybxqTLgLXkNOmVmDTn04B9PGIDA8Ls,1251
|
39
39
|
pymammotion/data/model/raw_data.py,sha256=x2xuqVC8CQuV3ui3QK4G5EqRET9EsNljHLHR11ByYgo,6471
|
40
40
|
pymammotion/data/model/region_data.py,sha256=VokMRqB_o4OFL1TWAM90Fvm-1z4jcYrw3X2o760qpx4,2949
|
41
|
-
pymammotion/data/model/report_info.py,sha256=
|
41
|
+
pymammotion/data/model/report_info.py,sha256=h33TgwTRqBxwrQoOFFEGPziw2mfWXOij92pYwK2w16A,3455
|
42
42
|
pymammotion/data/mqtt/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
43
43
|
pymammotion/data/mqtt/event.py,sha256=r14gzZVxmlGVAwFdZQ1CUsMZFHHwRKnbt2VHnjugP28,5123
|
44
44
|
pymammotion/data/mqtt/properties.py,sha256=pX5JRVmmpVO04CSPm5xAGcSWA_OeLd0JnBagLsfiSEc,3755
|
@@ -48,7 +48,7 @@ pymammotion/event/__init__.py,sha256=mgATR6vPHACNQ-0zH5fi7NdzeTCDV1CZyaWPmtUusi8
|
|
48
48
|
pymammotion/event/event.py,sha256=bj2RirSIRyBs0QvkcrOtwZWUX_8F3m1sySuHVyKmZLs,2143
|
49
49
|
pymammotion/http/_init_.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
50
50
|
pymammotion/http/encryption.py,sha256=lzXu3WwBdQlzjXxWnlJuRgkCrKdPbxx5drhMitVKIEk,8287
|
51
|
-
pymammotion/http/http.py,sha256=
|
51
|
+
pymammotion/http/http.py,sha256=t4GWoF8qfCvFCVDR5-koIwSq-rEq-vYmQYLNbpwIDQ4,6871
|
52
52
|
pymammotion/http/model/http.py,sha256=tM5ikwVkWhRdXc2xi1NOLmWPH2mQEQelpaVgMlAEmlI,2333
|
53
53
|
pymammotion/mammotion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
54
54
|
pymammotion/mammotion/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -117,7 +117,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
|
|
117
117
|
pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
|
118
118
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
119
119
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
120
|
-
pymammotion-0.4.
|
121
|
-
pymammotion-0.4.
|
122
|
-
pymammotion-0.4.
|
123
|
-
pymammotion-0.4.
|
120
|
+
pymammotion-0.4.4.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
121
|
+
pymammotion-0.4.4.dist-info/METADATA,sha256=HVHPbDbDxufqnzfxyvn-4OPQV36ZEe2zeVwblE7W1sk,3884
|
122
|
+
pymammotion-0.4.4.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
123
|
+
pymammotion-0.4.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|