pymammotion 0.2.37__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/mammotion/devices/base.py +3 -4
- pymammotion/mammotion/devices/mammotion.py +3 -1
- {pymammotion-0.2.37.dist-info → pymammotion-0.2.38.dist-info}/METADATA +1 -1
- {pymammotion-0.2.37.dist-info → pymammotion-0.2.38.dist-info}/RECORD +6 -6
- {pymammotion-0.2.37.dist-info → pymammotion-0.2.38.dist-info}/LICENSE +0 -0
- {pymammotion-0.2.37.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__)
|
@@ -206,10 +205,10 @@ class MammotionBaseDevice:
|
|
206
205
|
|
207
206
|
if self._cloud_device:
|
208
207
|
await self.queue_command("get_area_name_list", device_id=self._cloud_device.iotId)
|
209
|
-
|
208
|
+
elif has_field(self._mower.net.toapp_wifi_iot_status):
|
210
209
|
await self.queue_command(
|
211
|
-
|
212
|
-
|
210
|
+
"get_area_name_list", device_id=self._mower.net.toapp_wifi_iot_status.devicename
|
211
|
+
)
|
213
212
|
except Exception:
|
214
213
|
"""Do nothing for now."""
|
215
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)
|
@@ -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
|