pymammotion 0.4.47__py3-none-any.whl → 0.4.48__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/data/model/device_info.py +2 -4
- pymammotion/data/state_manager.py +2 -3
- {pymammotion-0.4.47.dist-info → pymammotion-0.4.48.dist-info}/METADATA +1 -1
- {pymammotion-0.4.47.dist-info → pymammotion-0.4.48.dist-info}/RECORD +6 -6
- {pymammotion-0.4.47.dist-info → pymammotion-0.4.48.dist-info}/LICENSE +0 -0
- {pymammotion-0.4.47.dist-info → pymammotion-0.4.48.dist-info}/WHEEL +0 -0
@@ -2,8 +2,6 @@ from dataclasses import dataclass, field
|
|
2
2
|
|
3
3
|
from mashumaro.mixins.orjson import DataClassORJSONMixin
|
4
4
|
|
5
|
-
from pymammotion.data.model.mowing_modes import TraversalMode, TurningMode
|
6
|
-
|
7
5
|
|
8
6
|
@dataclass
|
9
7
|
class SideLight(DataClassORJSONMixin):
|
@@ -20,8 +18,8 @@ class SideLight(DataClassORJSONMixin):
|
|
20
18
|
class MowerInfo(DataClassORJSONMixin):
|
21
19
|
blade_status: bool = False
|
22
20
|
rain_detection: bool = False
|
23
|
-
traversal_mode:
|
24
|
-
turning_mode:
|
21
|
+
traversal_mode: int = 0
|
22
|
+
turning_mode: int = 0
|
25
23
|
side_led: SideLight = field(default_factory=SideLight)
|
26
24
|
collector_installation_status: bool = False
|
27
25
|
model: str = ""
|
@@ -11,7 +11,6 @@ from pymammotion.data.model.device import MowingDevice
|
|
11
11
|
from pymammotion.data.model.device_info import SideLight
|
12
12
|
from pymammotion.data.model.enums import ConnectionPreference
|
13
13
|
from pymammotion.data.model.hash_list import AreaHashNameList, NavGetCommData, NavGetHashListData, Plan, SvgMessage
|
14
|
-
from pymammotion.data.model.mowing_modes import TraversalMode, TurningMode
|
15
14
|
from pymammotion.data.model.work import CurrentTaskSettings
|
16
15
|
from pymammotion.data.mqtt.properties import ThingPropertiesMessage
|
17
16
|
from pymammotion.data.mqtt.status import ThingStatusMessage
|
@@ -181,9 +180,9 @@ class StateManager:
|
|
181
180
|
case 3:
|
182
181
|
self._device.mower_state.rain_detection = bool(settings.context)
|
183
182
|
case 6:
|
184
|
-
self._device.mower_state.turning_mode =
|
183
|
+
self._device.mower_state.turning_mode = settings.context
|
185
184
|
case 7:
|
186
|
-
self._device.mower_state.traversal_mode =
|
185
|
+
self._device.mower_state.traversal_mode = settings.context
|
187
186
|
|
188
187
|
def _update_sys_data(self, message) -> None:
|
189
188
|
"""Update system."""
|
@@ -27,7 +27,7 @@ pymammotion/data/model/__init__.py,sha256=UVRbSXGOjYnWv30ZEvzT5QRpdVqAbyeToo-t0Q
|
|
27
27
|
pymammotion/data/model/account.py,sha256=vJM-KTf2q6eBfVC-UlNHBSmJvqHiCawZ40vnuhXhaz8,140
|
28
28
|
pymammotion/data/model/device.py,sha256=tsOuapxFVp17Qwng62EcHGl53Xqfndnk4o6eEpkbq60,7509
|
29
29
|
pymammotion/data/model/device_config.py,sha256=DTnoePsMwJrKVXqGeKvbZQjs8Zab61U5T3b-c-w0WlM,2654
|
30
|
-
pymammotion/data/model/device_info.py,sha256
|
30
|
+
pymammotion/data/model/device_info.py,sha256=R1vLBvAgST2sWTAYYKmZB7HcYXqq_LlobrhrGG0TKIc,991
|
31
31
|
pymammotion/data/model/device_limits.py,sha256=m8HdxD-RaAkPm7jHYb9GLxMEH9IfzBPz0ZypmsLnId4,1946
|
32
32
|
pymammotion/data/model/enums.py,sha256=NLImBbeqwbwBLbABC_NbBzk4M8OxhUTcto6QcGZVNOc,1707
|
33
33
|
pymammotion/data/model/excute_boarder_params.py,sha256=9CpUqrygcle1C_1hDW-riLmm4map4ZbE842NXjcomEI,1394
|
@@ -45,7 +45,7 @@ pymammotion/data/mqtt/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdr
|
|
45
45
|
pymammotion/data/mqtt/event.py,sha256=r14gzZVxmlGVAwFdZQ1CUsMZFHHwRKnbt2VHnjugP28,5123
|
46
46
|
pymammotion/data/mqtt/properties.py,sha256=pX5JRVmmpVO04CSPm5xAGcSWA_OeLd0JnBagLsfiSEc,3755
|
47
47
|
pymammotion/data/mqtt/status.py,sha256=SgdrpE1Uldb01hybO6hYhgU1Sp1eILghC0UhMZMHrdQ,1091
|
48
|
-
pymammotion/data/state_manager.py,sha256=
|
48
|
+
pymammotion/data/state_manager.py,sha256=1LlkR1ghMHdxAfSR1OHmrz_X2-Da3f6xqNoxLSk-zT4,10313
|
49
49
|
pymammotion/event/__init__.py,sha256=mgATR6vPHACNQ-0zH5fi7NdzeTCDV1CZyaWPmtUusi8,115
|
50
50
|
pymammotion/event/event.py,sha256=bj2RirSIRyBs0QvkcrOtwZWUX_8F3m1sySuHVyKmZLs,2143
|
51
51
|
pymammotion/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -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.
|
127
|
-
pymammotion-0.4.
|
128
|
-
pymammotion-0.4.
|
129
|
-
pymammotion-0.4.
|
126
|
+
pymammotion-0.4.48.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
127
|
+
pymammotion-0.4.48.dist-info/METADATA,sha256=XUvVIzAkWDYWJvQAiyVDpmd2jB6q85tob7arz4nukrY,3878
|
128
|
+
pymammotion-0.4.48.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
129
|
+
pymammotion-0.4.48.dist-info/RECORD,,
|
File without changes
|
File without changes
|