From dc032f67194d6ade0acc60dcade71876d400fe1e Mon Sep 17 00:00:00 2001 From: bittles Date: Thu, 19 Jan 2023 18:44:33 -0500 Subject: [PATCH] cant comment block inside class call --- custom_components/ecovacs/manifest.json | 2 +- custom_components/ecovacs/sucks.py | 34 ++++++++++++------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/custom_components/ecovacs/manifest.json b/custom_components/ecovacs/manifest.json index 4434fbc..66ad132 100644 --- a/custom_components/ecovacs/manifest.json +++ b/custom_components/ecovacs/manifest.json @@ -1,7 +1,7 @@ { "domain": "ecovacs", "name": "Ecovacs Bumper", - "version": "1.5.2", + "version": "1.5.3", "documentation": "https://github.com/bittles/ha_ecovacs_bumper", "issue_tracker": "https://github.com/bittles/ha_ecovacs_bumper/issues", "requirements": ["sleekxmppfs==1.4.1", "requests>=2.18", "pycryptodome>=3.4", "pycountry-convert>=0.5", "paho-mqtt>=1.4", "stringcase>=1.2"], diff --git a/custom_components/ecovacs/sucks.py b/custom_components/ecovacs/sucks.py index 4edf027..a0a8200 100644 --- a/custom_components/ecovacs/sucks.py +++ b/custom_components/ecovacs/sucks.py @@ -117,28 +117,28 @@ class VacBot(): # if not error == '': -""" -Errors -The bot broadcasts error codes for a number of cases. - +# Errors +# The bot broadcasts error codes for a number of cases. -The latest error can be requested like so: +# -Request -Response -However in some cases the robot sends to code 100 shortly after an error has occurred, meaning that we cannot trust the GetError request to contain the last relevant error. For example, if the robot gets stuck it broadcasts 102 HostHang, then proceeds to stop and broadcasts 100 NoError. +# The latest error can be requested like so: -Known error codes +# Request +# Response +# However in some cases the robot sends to code 100 shortly after an error has occurred, meaning that we cannot trust the GetError request to contain the last relevant error. For example, if the robot gets stuck it broadcasts 102 HostHang, then proceeds to stop and broadcasts 100 NoError. + +# Known error codes + +# 100 NoError: Robot is operational +# 101 BatteryLow: Low battery +# 102 HostHang: Robot is stuck +# 103 WheelAbnormal: Wheels are not moving as expected +# 104 DownSensorAbnormal: Down sensor is getting abnormal values +# 110 NoDustBox: Dust Bin Not installed +# These codes are taken from model M81 Pro. Error codes may differ between models. -100 NoError: Robot is operational -101 BatteryLow: Low battery -102 HostHang: Robot is stuck -103 WheelAbnormal: Wheels are not moving as expected -104 DownSensorAbnormal: Down sensor is getting abnormal values -110 NoDustBox: Dust Bin Not installed -These codes are taken from model M81 Pro. Error codes may differ between models. -""" def _handle_life_span(self, event): type = event['type']