pymammotion 0.0.51__py3-none-any.whl → 0.0.52__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.
Potentially problematic release.
This version of pymammotion might be problematic. Click here for more details.
- pymammotion/data/model/device.py +28 -7
- {pymammotion-0.0.51.dist-info → pymammotion-0.0.52.dist-info}/METADATA +1 -1
- {pymammotion-0.0.51.dist-info → pymammotion-0.0.52.dist-info}/RECORD +5 -5
- {pymammotion-0.0.51.dist-info → pymammotion-0.0.52.dist-info}/LICENSE +0 -0
- {pymammotion-0.0.51.dist-info → pymammotion-0.0.52.dist-info}/WHEEL +0 -0
pymammotion/data/model/device.py
CHANGED
|
@@ -127,7 +127,10 @@ class DevNetData:
|
|
|
127
127
|
net: dict
|
|
128
128
|
|
|
129
129
|
def __init__(self, net: DevNet):
|
|
130
|
-
|
|
130
|
+
if isinstance(net, dict):
|
|
131
|
+
self.net = net
|
|
132
|
+
else:
|
|
133
|
+
self.net = net.to_dict()
|
|
131
134
|
|
|
132
135
|
def __getattr__(self, item):
|
|
133
136
|
"""Intercept call to get net in dict and return a betterproto dataclass."""
|
|
@@ -147,7 +150,10 @@ class SysData:
|
|
|
147
150
|
sys: dict
|
|
148
151
|
|
|
149
152
|
def __init__(self, sys: MctlSys):
|
|
150
|
-
|
|
153
|
+
if isinstance(sys, dict):
|
|
154
|
+
self.sys = sys
|
|
155
|
+
else:
|
|
156
|
+
self.sys = sys.to_dict()
|
|
151
157
|
|
|
152
158
|
def __getattr__(self, item):
|
|
153
159
|
"""Intercept call to get sys in dict and return a betterproto dataclass."""
|
|
@@ -167,7 +173,10 @@ class NavData:
|
|
|
167
173
|
nav: dict
|
|
168
174
|
|
|
169
175
|
def __init__(self, nav: MctlNav):
|
|
170
|
-
|
|
176
|
+
if isinstance(nav, dict):
|
|
177
|
+
self.nav = nav
|
|
178
|
+
else:
|
|
179
|
+
self.nav = nav.to_dict()
|
|
171
180
|
|
|
172
181
|
def __getattr__(self, item):
|
|
173
182
|
"""Intercept call to get nav in dict and return a betterproto dataclass."""
|
|
@@ -187,7 +196,10 @@ class DriverData:
|
|
|
187
196
|
driver: dict
|
|
188
197
|
|
|
189
198
|
def __init__(self, driver: MctlDriver):
|
|
190
|
-
|
|
199
|
+
if isinstance(driver, dict):
|
|
200
|
+
self.driver = driver
|
|
201
|
+
else:
|
|
202
|
+
self.driver = driver.to_dict()
|
|
191
203
|
|
|
192
204
|
def __getattr__(self, item):
|
|
193
205
|
"""Intercept call to get driver in dict and return a betterproto dataclass."""
|
|
@@ -207,7 +219,10 @@ class MulData:
|
|
|
207
219
|
mul: dict
|
|
208
220
|
|
|
209
221
|
def __init__(self, mul: SocMul):
|
|
210
|
-
|
|
222
|
+
if isinstance(mul, dict):
|
|
223
|
+
self.mul = mul
|
|
224
|
+
else:
|
|
225
|
+
self.mul = mul.to_dict()
|
|
211
226
|
|
|
212
227
|
def __getattr__(self, item):
|
|
213
228
|
"""Intercept call to get mul in dict and return a betterproto dataclass."""
|
|
@@ -227,7 +242,10 @@ class OtaData:
|
|
|
227
242
|
ota: dict
|
|
228
243
|
|
|
229
244
|
def __init__(self, ota: MctlOta):
|
|
230
|
-
|
|
245
|
+
if isinstance(ota, dict):
|
|
246
|
+
self.ota = ota
|
|
247
|
+
else:
|
|
248
|
+
self.ota = ota.to_dict()
|
|
231
249
|
|
|
232
250
|
def __getattr__(self, item):
|
|
233
251
|
"""Intercept call to get ota in dict and return a betterproto dataclass."""
|
|
@@ -247,7 +265,10 @@ class PeptData:
|
|
|
247
265
|
pept: dict
|
|
248
266
|
|
|
249
267
|
def __init__(self, pept: MctlPept):
|
|
250
|
-
|
|
268
|
+
if isinstance(pept, dict):
|
|
269
|
+
self.pept = pept
|
|
270
|
+
else:
|
|
271
|
+
self.pept = pept.to_dict()
|
|
251
272
|
|
|
252
273
|
def __getattr__(self, item):
|
|
253
274
|
"""Intercept call to get pept in dict and return a betterproto dataclass."""
|
|
@@ -20,7 +20,7 @@ pymammotion/bluetooth/data/notifydata.py,sha256=N1bphpueWUWbsWUcpZmMGt2CyCgLcKAF
|
|
|
20
20
|
pymammotion/const.py,sha256=3plR6t5sFVhx3LoUbW5PE2gqIANoD-fSm-T0q8uIwIU,336
|
|
21
21
|
pymammotion/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
pymammotion/data/model/__init__.py,sha256=d8FlIgCcWqoH3jJSpnm-IY-25RM-l2nbRwLtWjSHo74,222
|
|
23
|
-
pymammotion/data/model/device.py,sha256
|
|
23
|
+
pymammotion/data/model/device.py,sha256=-Hb66EQbz2RXMx8dQ0kwqCmpn2fRtutoSwU4Xf0Y4hg,9139
|
|
24
24
|
pymammotion/data/model/enums.py,sha256=tD_vYsxstOV_lUkYF9uWkrjVOgAJPNnGevy_xmiu3WE,1558
|
|
25
25
|
pymammotion/data/model/excute_boarder_params.py,sha256=kadSth4y-VXlXIZ6R-Ng-kDvBbM-3YRr8bmR86qR0U0,1355
|
|
26
26
|
pymammotion/data/model/execute_boarder.py,sha256=oDb2h5tFtOQIa8OCNYaDugqCgCZBLjQRzQTNVcJVAGQ,1072
|
|
@@ -102,7 +102,7 @@ pymammotion/utility/datatype_converter.py,sha256=v6zym2Zu0upxQjR-xDqXwi3516zpntS
|
|
|
102
102
|
pymammotion/utility/device_type.py,sha256=B_Y1WCRPlFMDOqC13H0ltInyPkbPMIxCoZccCC13fmc,8154
|
|
103
103
|
pymammotion/utility/periodic.py,sha256=9wJMfwXPlx6Mbp3Fws7LLTI34ZDKphH1bva_Ggyk32g,3281
|
|
104
104
|
pymammotion/utility/rocker_util.py,sha256=syPL0QN4zMzHiTIkUKS7RXBBptjdbkfNlPddwUD5V3A,7171
|
|
105
|
-
pymammotion-0.0.
|
|
106
|
-
pymammotion-0.0.
|
|
107
|
-
pymammotion-0.0.
|
|
108
|
-
pymammotion-0.0.
|
|
105
|
+
pymammotion-0.0.52.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
106
|
+
pymammotion-0.0.52.dist-info/METADATA,sha256=T_ZjjSw8nsBl5MU0MzTr-U6fVrfImiOP-VF21_adq6c,3884
|
|
107
|
+
pymammotion-0.0.52.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
108
|
+
pymammotion-0.0.52.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|