pymammotion 0.4.54__py3-none-any.whl → 0.4.55__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 pymammotion might be problematic. Click here for more details.

pymammotion/http/http.py CHANGED
@@ -106,7 +106,9 @@ class MammotionHTTP:
106
106
  data = await resp.json()
107
107
  # TODO catch errors from mismatch like token expire etc
108
108
  # Assuming the data format matches the expected structure
109
- return Response[StreamSubscriptionResponse].from_dict(data)
109
+ response = Response[StreamSubscriptionResponse].from_dict(data)
110
+ response.data = StreamSubscriptionResponse.from_dict(data["data"])
111
+ return response
110
112
 
111
113
  async def get_stream_subscription_mini_or_x_series(
112
114
  self, iot_id: str, is_yuka: bool
@@ -135,7 +137,9 @@ class MammotionHTTP:
135
137
  data = await resp.json()
136
138
  # TODO catch errors from mismatch like token expire etc
137
139
  # Assuming the data format matches the expected structure
138
- return Response[StreamSubscriptionResponse].from_dict(data)
140
+ response = Response[StreamSubscriptionResponse].from_dict(data)
141
+ response.data = StreamSubscriptionResponse.from_dict(data["data"])
142
+ return response
139
143
 
140
144
  async def get_video_resource(self, iot_id: str) -> Response[VideoResourceResponse]:
141
145
  """Get video resource for new models (2025 series)"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pymammotion
3
- Version: 0.4.54
3
+ Version: 0.4.55
4
4
  Summary:
5
5
  License: GPL-3.0
6
6
  Author: Michael Arthur
@@ -51,7 +51,7 @@ pymammotion/event/event.py,sha256=bj2RirSIRyBs0QvkcrOtwZWUX_8F3m1sySuHVyKmZLs,21
51
51
  pymammotion/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  pymammotion/http/_init_.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  pymammotion/http/encryption.py,sha256=lzXu3WwBdQlzjXxWnlJuRgkCrKdPbxx5drhMitVKIEk,8287
54
- pymammotion/http/http.py,sha256=VONAwhnniyCavu3S5sKv2pp1m8dv-x3Z9z5ueKVmqt8,9549
54
+ pymammotion/http/http.py,sha256=ODG6VXGEn73WQVeH0llhw7vC1UA6lJ5p7dKJlSnx_FM,9787
55
55
  pymammotion/http/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
56
  pymammotion/http/model/camera_stream.py,sha256=ilxQNny_w9Frwt-m8kbHinvyjDv4Bx8C2swfZ2lTEDE,600
57
57
  pymammotion/http/model/http.py,sha256=tM5ikwVkWhRdXc2xi1NOLmWPH2mQEQelpaVgMlAEmlI,2333
@@ -123,7 +123,7 @@ pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tp
123
123
  pymammotion/utility/mur_mur_hash.py,sha256=xEfOZVbqRawJj66eLgtnZ85OauDR47oIPr29OHelzPI,4468
124
124
  pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
125
125
  pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
126
- pymammotion-0.4.54.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
127
- pymammotion-0.4.54.dist-info/METADATA,sha256=jSP_SsEcwPL1U4Bl7JpJehngXz1LG6JRwon8scc3d8s,3878
128
- pymammotion-0.4.54.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
129
- pymammotion-0.4.54.dist-info/RECORD,,
126
+ pymammotion-0.4.55.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
127
+ pymammotion-0.4.55.dist-info/METADATA,sha256=4jYgGWTc7IL4ReWqPIUKdejtwmi78Syo_DL7jlrTY14,3878
128
+ pymammotion-0.4.55.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
129
+ pymammotion-0.4.55.dist-info/RECORD,,