From eca1f050cdcb0cffb588bfd997a832287b546d7d Mon Sep 17 00:00:00 2001 From: Greg Laabs Date: Sun, 23 Sep 2018 00:43:01 -0700 Subject: [PATCH] Bump sucks (Ecovacs) lib to 0.9.3 (#16803) * Bump sucks (Ecovacs) lib to 0.9.3 Changed code that was in place as a workaround pre-0.9.2. This version bump fixes a few issues. * Update requirements_all --- homeassistant/components/ecovacs.py | 2 +- homeassistant/components/vacuum/ecovacs.py | 6 +----- requirements_all.txt | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/ecovacs.py b/homeassistant/components/ecovacs.py index 53761a1013f..8cbe95ee685 100644 --- a/homeassistant/components/ecovacs.py +++ b/homeassistant/components/ecovacs.py @@ -15,7 +15,7 @@ from homeassistant.helpers import discovery from homeassistant.const import CONF_USERNAME, CONF_PASSWORD, \ EVENT_HOMEASSISTANT_STOP -REQUIREMENTS = ['sucks==0.9.1'] +REQUIREMENTS = ['sucks==0.9.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vacuum/ecovacs.py b/homeassistant/components/vacuum/ecovacs.py index 927362ac9db..7f05554c496 100644 --- a/homeassistant/components/vacuum/ecovacs.py +++ b/homeassistant/components/vacuum/ecovacs.py @@ -189,10 +189,6 @@ class EcovacsVacuum(VacuumDevice): for key, val in self.device.components.items(): attr_name = ATTR_COMPONENT_PREFIX + key - data[attr_name] = int(val * 100 / 0.2777778) - # The above calculation includes a fix for a bug in sucks 0.9.1 - # When sucks 0.9.2+ is released, it should be changed to the - # following: - # data[attr_name] = int(val * 100) + data[attr_name] = int(val * 100) return data diff --git a/requirements_all.txt b/requirements_all.txt index 9033b531e64..a2313275680 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1385,7 +1385,7 @@ statsd==3.2.1 steamodd==4.21 # homeassistant.components.ecovacs -sucks==0.9.1 +sucks==0.9.3 # homeassistant.components.camera.onvif suds-passworddigest-homeassistant==0.1.2a0.dev0