pymammotion 0.4.0a0__py3-none-any.whl → 0.4.0a2__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.
@@ -14,7 +14,7 @@ from pymammotion.aliyun.model.dev_by_account_response import Device
14
14
  from pymammotion.data.model.account import Credentials
15
15
  from pymammotion.data.model.device import MowingDevice
16
16
  from pymammotion.data.state_manager import StateManager
17
- from pymammotion.http.http import connect_http
17
+ from pymammotion.http.http import MammotionHTTP
18
18
  from pymammotion.mammotion.devices.mammotion_bluetooth import MammotionBaseBLEDevice
19
19
  from pymammotion.mammotion.devices.mammotion_cloud import MammotionBaseCloudDevice, MammotionCloud
20
20
  from pymammotion.mqtt import MammotionMQTT
@@ -230,7 +230,8 @@ class Mammotion:
230
230
  async def login(self, account: str, password: str) -> CloudIOTGateway:
231
231
  """Login to mammotion cloud."""
232
232
  cloud_client = CloudIOTGateway()
233
- mammotion_http = await connect_http(account, password)
233
+ mammotion_http = MammotionHTTP()
234
+ await mammotion_http.login(account, password)
234
235
  country_code = mammotion_http.login_info.userInformation.domainAbbreviation
235
236
  _LOGGER.debug("CountryCode: " + country_code)
236
237
  _LOGGER.debug("AuthCode: " + mammotion_http.login_info.authorization_code)
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymammotion
3
- Version: 0.4.0a0
3
+ Version: 0.4.0a2
4
4
  Summary:
5
- License: GNU-3.0
5
+ License: GPL-3.0
6
6
  Author: Michael Arthur
7
7
  Author-email: michael@jumblesoft.co.nz
8
8
  Requires-Python: >=3.10,<3.13
9
- Classifier: License :: Other/Proprietary License
9
+ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.10
12
12
  Classifier: Programming Language :: Python :: 3.11
@@ -67,7 +67,7 @@ pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
67
67
  pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3TTad9wHIPsU9s,5640
68
68
  pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_Ar_JEAAMD4fsE,102
69
69
  pymammotion/mammotion/devices/base.py,sha256=2IKm7CYGmvRLpJaAKp25tL23UhOoSEHJ6On5D0N5TSk,10763
70
- pymammotion/mammotion/devices/mammotion.py,sha256=dF5R5yB5capEwJIjt1M2_P2XVfxCKSY8FNutK7hGDnU,12557
70
+ pymammotion/mammotion/devices/mammotion.py,sha256=7kJXTIdlthnbgUBVPcrc3VnxOtLWvk0d2vFetfjwrg0,12590
71
71
  pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=HUOKnjYUWTGjksyQDCPKF_u3dWo2ddgrWCBXnJ2VkwA,18963
72
72
  pymammotion/mammotion/devices/mammotion_cloud.py,sha256=a9fB0ZCYElRxrjnwCM81RXCbxo5kJKhGa-BGck9U3-A,12949
73
73
  pymammotion/mqtt/__init__.py,sha256=Ocs5e-HLJvTuDpVXyECEsWIvwsUaxzj7lZ9mSYutNDY,105
@@ -125,7 +125,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
125
125
  pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
126
126
  pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
127
127
  pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
128
- pymammotion-0.4.0a0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
129
- pymammotion-0.4.0a0.dist-info/METADATA,sha256=ULAzOBhTFc4IT272ZVf8G1H2lUi9VoecgASsy1XqFjw,3936
130
- pymammotion-0.4.0a0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
131
- pymammotion-0.4.0a0.dist-info/RECORD,,
128
+ pymammotion-0.4.0a2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
129
+ pymammotion-0.4.0a2.dist-info/METADATA,sha256=TZClX4JtT5mMzYccOzx2xFn70OUl2IdLknCFuMZnAGE,3964
130
+ pymammotion-0.4.0a2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
131
+ pymammotion-0.4.0a2.dist-info/RECORD,,