pymammotion 0.2.36__py3-none-any.whl → 0.2.38__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/aliyun/dataclass/session_by_authcode_response.py +1 -1
- pymammotion/mammotion/devices/base.py +5 -8
- pymammotion/mammotion/devices/mammotion.py +4 -2
- {pymammotion-0.2.36.dist-info → pymammotion-0.2.38.dist-info}/METADATA +1 -1
- {pymammotion-0.2.36.dist-info → pymammotion-0.2.38.dist-info}/RECORD +7 -7
- {pymammotion-0.2.36.dist-info → pymammotion-0.2.38.dist-info}/LICENSE +0 -0
- {pymammotion-0.2.36.dist-info → pymammotion-0.2.38.dist-info}/WHEEL +0 -0
@@ -12,7 +12,6 @@ from pymammotion.data.state_manager import StateManager
|
|
12
12
|
from pymammotion.proto import has_field
|
13
13
|
from pymammotion.proto.luba_msg import LubaMsg
|
14
14
|
from pymammotion.proto.mctrl_nav import NavGetCommDataAck, NavGetHashListAck
|
15
|
-
from pymammotion.utility.device_type import DeviceType
|
16
15
|
from pymammotion.utility.movement import get_percent, transform_both_speeds
|
17
16
|
|
18
17
|
_LOGGER = logging.getLogger(__name__)
|
@@ -205,13 +204,11 @@ class MammotionBaseDevice:
|
|
205
204
|
# work out why this crashes sometimes for better proto
|
206
205
|
|
207
206
|
if self._cloud_device:
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
"get_area_name_list", device_id=self._mower.net.toapp_wifi_iot_status.devicename
|
214
|
-
)
|
207
|
+
await self.queue_command("get_area_name_list", device_id=self._cloud_device.iotId)
|
208
|
+
elif has_field(self._mower.net.toapp_wifi_iot_status):
|
209
|
+
await self.queue_command(
|
210
|
+
"get_area_name_list", device_id=self._mower.net.toapp_wifi_iot_status.devicename
|
211
|
+
)
|
215
212
|
except Exception:
|
216
213
|
"""Do nothing for now."""
|
217
214
|
|
@@ -151,7 +151,9 @@ class Mammotion:
|
|
151
151
|
"""Initialize MammotionDevice."""
|
152
152
|
self._login_lock = asyncio.Lock()
|
153
153
|
|
154
|
-
def add_ble_device(
|
154
|
+
def add_ble_device(
|
155
|
+
self, ble_device: BLEDevice, preference: ConnectionPreference = ConnectionPreference.BLUETOOTH
|
156
|
+
) -> None:
|
155
157
|
if ble_device:
|
156
158
|
self.devices.add_device(
|
157
159
|
MammotionMixedDeviceManager(name=ble_device.name, ble_device=ble_device, preference=preference)
|
@@ -187,7 +189,7 @@ class Mammotion:
|
|
187
189
|
),
|
188
190
|
cloud_client,
|
189
191
|
)
|
190
|
-
|
192
|
+
self.add_cloud_devices(self.mqtt_list.get(account))
|
191
193
|
loop = asyncio.get_running_loop()
|
192
194
|
await loop.run_in_executor(None, self.mqtt_list[account].connect_async)
|
193
195
|
|
@@ -7,7 +7,7 @@ pymammotion/aliyun/dataclass/connect_response.py,sha256=Yz-fEbDzgGPTo5Of2oAjmFkS
|
|
7
7
|
pymammotion/aliyun/dataclass/dev_by_account_response.py,sha256=gskum11h9HPf4lKjLJKVrsxRl5BHaHJP2TPrI09SUYs,1032
|
8
8
|
pymammotion/aliyun/dataclass/login_by_oauth_response.py,sha256=IXSLZ6XnOliOnyXo5Bh0ErqFjA11puACh_9NH0sSJGQ,1262
|
9
9
|
pymammotion/aliyun/dataclass/regions_response.py,sha256=CVPpdFhDD6_emWHyLRzOdp2j3HLPtP8tlNyzGnr8AcI,690
|
10
|
-
pymammotion/aliyun/dataclass/session_by_authcode_response.py,sha256=
|
10
|
+
pymammotion/aliyun/dataclass/session_by_authcode_response.py,sha256=qW0pnnRXfyEuMbb9ORc013sYqZwO8z4i_h_SfSaA_bw,419
|
11
11
|
pymammotion/aliyun/tmp_constant.py,sha256=M4Hq_lrGB3LZdX6R2XohRPFoK1NDnNV-pTJwJcJ9838,6650
|
12
12
|
pymammotion/bluetooth/__init__.py,sha256=LAl8jqZ1fPh-3mLmViNQsP3s814C1vsocYUa6oSaXt0,36
|
13
13
|
pymammotion/bluetooth/ble.py,sha256=YfkfEK3TLJ8BaidjAXfUVFv8reLCu6U_lYa3Bo0pddw,2449
|
@@ -59,8 +59,8 @@ pymammotion/mammotion/commands/messages/video.py,sha256=_8lJsU4sLm2CGnc7RDkueA0A
|
|
59
59
|
pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
60
60
|
pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3TTad9wHIPsU9s,5640
|
61
61
|
pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_Ar_JEAAMD4fsE,102
|
62
|
-
pymammotion/mammotion/devices/base.py,sha256=
|
63
|
-
pymammotion/mammotion/devices/mammotion.py,sha256=
|
62
|
+
pymammotion/mammotion/devices/base.py,sha256=gG7qWuNdUIlS87T_opaynd9BrhClQSxDD6MAsmoTZbE,11230
|
63
|
+
pymammotion/mammotion/devices/mammotion.py,sha256=vMM9xqzxuvambPQC1mg7HLIaJksvZK7GLdG4oRAWt5Q,11670
|
64
64
|
pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=sgGeyQeAeA3lQodcalRYS4nDNAzjfFs9SddIB1kadvw,17355
|
65
65
|
pymammotion/mammotion/devices/mammotion_cloud.py,sha256=dk49VY9yHO3d-Nb17y-D4YIURs2FTLMzWHUYrxBYhtw,10116
|
66
66
|
pymammotion/mqtt/__init__.py,sha256=Ocs5e-HLJvTuDpVXyECEsWIvwsUaxzj7lZ9mSYutNDY,105
|
@@ -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.2.
|
121
|
-
pymammotion-0.2.
|
122
|
-
pymammotion-0.2.
|
123
|
-
pymammotion-0.2.
|
120
|
+
pymammotion-0.2.38.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
121
|
+
pymammotion-0.2.38.dist-info/METADATA,sha256=KCTjSd0ig3-zmsFVNbeFk3lueozZoutxjAtBbaxOzQM,4052
|
122
|
+
pymammotion-0.2.38.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
123
|
+
pymammotion-0.2.38.dist-info/RECORD,,
|
File without changes
|
File without changes
|