pymammotion 0.5.17__py3-none-any.whl → 0.5.18__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.

@@ -22,6 +22,7 @@ from pymammotion.proto import (
22
22
  DeviceProductTypeInfoT,
23
23
  DrvDevInfoResp,
24
24
  DrvDevInfoResult,
25
+ Getlamprsp,
25
26
  GetNetworkInfoRsp,
26
27
  LubaMsg,
27
28
  NavGetCommDataAck,
@@ -32,7 +33,7 @@ from pymammotion.proto import (
32
33
  NavUnableTimeSet,
33
34
  SvgMessageAckT,
34
35
  TimeCtrlLight,
35
- WifiIotStatusReport, Getlamprsp,
36
+ WifiIotStatusReport,
36
37
  )
37
38
 
38
39
  logger = logging.getLogger(__name__)
@@ -269,8 +270,12 @@ class StateManager:
269
270
  case "Getlamprsp":
270
271
  lamp_resp: Getlamprsp = mul_msg[1]
271
272
  self._device.mower_state.lamp_info.lamp_bright = lamp_resp.lamp_bright
272
- self._device.mower_state.lamp_info.night_light = True if lamp_resp.lamp_ctrl.value > 0 else False
273
- self._device.mower_state.lamp_info.manual_light = True if lamp_resp.lamp_manual_ctrl.value > 0 else False
273
+ if lamp_resp.get_ids == 1126:
274
+ self._device.mower_state.lamp_info.manual_light = (
275
+ True if lamp_resp.lamp_manual_ctrl.value > 0 else False
276
+ )
277
+ if lamp_resp.get_ids == 1123:
278
+ self._device.mower_state.lamp_info.night_light = True if lamp_resp.lamp_ctrl.value > 0 else False
274
279
 
275
280
  def _update_ota_data(self, message) -> None:
276
281
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pymammotion
3
- Version: 0.5.17
3
+ Version: 0.5.18
4
4
  Summary:
5
5
  License: GPL-3.0
6
6
  Author: Michael Arthur
@@ -47,7 +47,7 @@ pymammotion/data/mqtt/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdr
47
47
  pymammotion/data/mqtt/event.py,sha256=pj65y93ACcTzUIJkHZC6s_pRFBYaNMSU1wyYRhiGvw4,5571
48
48
  pymammotion/data/mqtt/properties.py,sha256=laud9rE-JqBHWKZ44Dov2yMkp3Ld8ghpBwlZ4_3g9uQ,4321
49
49
  pymammotion/data/mqtt/status.py,sha256=qwZPevIzScePA_25nbRWMN7IhU-MhhtIl7fcZKAJfIc,1102
50
- pymammotion/data/state_manager.py,sha256=ChT4k_Mjags7z3EMk4XWd1MZeL3Cvep_1aTdJpvWJFo,12641
50
+ pymammotion/data/state_manager.py,sha256=7ibH4zM0KJeJ1yEQIzBW90BBuNm9LlWe7TO2ApSIXmI,12793
51
51
  pymammotion/event/__init__.py,sha256=mgATR6vPHACNQ-0zH5fi7NdzeTCDV1CZyaWPmtUusi8,115
52
52
  pymammotion/event/event.py,sha256=Z8WYxv_-5khEqKjL1w4c_Et24G1Kdm8QFuIBylD3h3U,3021
53
53
  pymammotion/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -128,7 +128,7 @@ pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tp
128
128
  pymammotion/utility/mur_mur_hash.py,sha256=xEfOZVbqRawJj66eLgtnZ85OauDR47oIPr29OHelzPI,4468
129
129
  pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
130
130
  pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
131
- pymammotion-0.5.17.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
132
- pymammotion-0.5.17.dist-info/METADATA,sha256=xoN2mPqAqKJRmPYuPKqdLtcK7lx6ZMbDZBH-2cYxOmU,3871
133
- pymammotion-0.5.17.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
134
- pymammotion-0.5.17.dist-info/RECORD,,
131
+ pymammotion-0.5.18.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
132
+ pymammotion-0.5.18.dist-info/METADATA,sha256=aKvyMRV8-6eQAb2pPr4amCCPeqzHDs69sBtBfVRo3Zo,3871
133
+ pymammotion-0.5.18.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
134
+ pymammotion-0.5.18.dist-info/RECORD,,