pymammotion 0.2.55__py3-none-any.whl → 0.2.56__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.
@@ -47,6 +47,7 @@ MOVE_HEADERS = (
47
47
 
48
48
 
49
49
  class SetupException(Exception):
50
+ """Raise when mqtt expires token or token is invalid."""
50
51
  pass
51
52
 
52
53
 
@@ -73,15 +74,6 @@ class CloudIOTGateway:
73
74
  _device_sn = ""
74
75
  _utdid = ""
75
76
 
76
- _connect_response: ConnectResponse | None = None
77
- _login_by_oauth_response: LoginByOAuthResponse | None = None
78
- _aep_response: AepResponse | None = None
79
- _session_by_authcode_response: SessionByAuthCodeResponse | None = None
80
- _devices_by_account_response: ListingDevByAccountResponse | None = None
81
- _region_response = None
82
-
83
- _iot_token_issued_at: int = None
84
-
85
77
  converter = DatatypeConverter()
86
78
 
87
79
  def __init__(
@@ -532,6 +524,7 @@ class CloudIOTGateway:
532
524
 
533
525
  if int(response_body_dict.get("code")) != 200:
534
526
  logger.error(response_body_dict)
527
+ self.sign_out()
535
528
  raise CheckSessionException("Error check or refresh token: " + response_body_dict.__str__())
536
529
 
537
530
  session = SessionByAuthCodeResponse.from_dict(response_body_dict)
@@ -221,7 +221,7 @@ class Mammotion:
221
221
  elif device.deviceName.startswith(("Luba-", "Yuka-")) and mower_device:
222
222
  if mower_device.cloud() is None:
223
223
  mower_device.add_cloud(cloud_device=device, mqtt=mqtt_client)
224
- elif mqtt_client != mower_device.cloud().mqtt:
224
+ else:
225
225
  mower_device.replace_mqtt(mqtt_client)
226
226
 
227
227
  def set_disconnect_strategy(self, disconnect: bool) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymammotion
3
- Version: 0.2.55
3
+ Version: 0.2.56
4
4
  Summary:
5
5
  License: GNU-3.0
6
6
  Author: Michael Arthur
@@ -1,6 +1,6 @@
1
1
  pymammotion/__init__.py,sha256=jHCQrpJaG1jAoID9T4RT3g4JsZc0JpJqIcqjnA7cXd0,1605
2
2
  pymammotion/aliyun/__init__.py,sha256=T1lkX7TRYiL4nqYanG4l4MImV-SlavSbuooC-W-uUGw,29
3
- pymammotion/aliyun/cloud_gateway.py,sha256=bUZHA-u1O2KphQOWNTxoNXwTvVZ1JptQ-9D5mHm-Xnw,25877
3
+ pymammotion/aliyun/cloud_gateway.py,sha256=tcBWB3tui6nT4S7OrV7ce8G2MRPi3MVvRY6h8BjptrA,25585
4
4
  pymammotion/aliyun/cloud_service.py,sha256=px7dUKow5Z7VyebjYzuKkzkm77XbUXYiFiYO_2e-UQ0,2207
5
5
  pymammotion/aliyun/model/aep_response.py,sha256=8f6GIP58ve8gd6AL3HBoXxsy0n2q4ygWvjELGnoOnVc,452
6
6
  pymammotion/aliyun/model/connect_response.py,sha256=Yz-fEbDzgGPTo5Of2oAjmFkSv08T7ze80pQU4k-gKIU,824
@@ -61,7 +61,7 @@ pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
61
61
  pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3TTad9wHIPsU9s,5640
62
62
  pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_Ar_JEAAMD4fsE,102
63
63
  pymammotion/mammotion/devices/base.py,sha256=MXAuJ9sGnf9QqBeNxGbOkdtqwVpPocVdxw0uT0DgSks,9800
64
- pymammotion/mammotion/devices/mammotion.py,sha256=OFLrxstDnOtfq1ikC-HF8MaWy5h3Wjmlw-hvHRmAZdc,12472
64
+ pymammotion/mammotion/devices/mammotion.py,sha256=ckGN6wjIB3rfXkk__0jUt7Jw6_02ZffhPTldw5fnvU8,12431
65
65
  pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=nyO7pkKgAoRPs-28ESf6ee-y3G5JTYRO-MCp4wKPMlE,17476
66
66
  pymammotion/mammotion/devices/mammotion_cloud.py,sha256=VuXuYlvi-HRbfRlgIV3KraVtbu2EM3QxP-JWWAYj_E0,11774
67
67
  pymammotion/mqtt/__init__.py,sha256=Ocs5e-HLJvTuDpVXyECEsWIvwsUaxzj7lZ9mSYutNDY,105
@@ -118,7 +118,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
118
118
  pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
119
119
  pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
120
120
  pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
121
- pymammotion-0.2.55.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
122
- pymammotion-0.2.55.dist-info/METADATA,sha256=vG2YGdlVDuWewMPfp4sHzR-PMrXY1NAaeYUmr4UgyyM,3926
123
- pymammotion-0.2.55.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
124
- pymammotion-0.2.55.dist-info/RECORD,,
121
+ pymammotion-0.2.56.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
122
+ pymammotion-0.2.56.dist-info/METADATA,sha256=NkDtH19s9Bx0fAzTgee2CFXiYLtqxOIIk2C8iYHzrig,3926
123
+ pymammotion-0.2.56.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
124
+ pymammotion-0.2.56.dist-info/RECORD,,