From 74beebc031260c693c20b3123fdc6a72010c7287 Mon Sep 17 00:00:00 2001 From: Thomas G <48775270+tomgie@users.noreply.github.com> Date: Thu, 4 Nov 2021 05:21:59 -0500 Subject: [PATCH] Swap sharkiq vacuum is_docked with is_charging (#58975) --- homeassistant/components/sharkiq/vacuum.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/homeassistant/components/sharkiq/vacuum.py b/homeassistant/components/sharkiq/vacuum.py index 3851dab7303..33412963cda 100644 --- a/homeassistant/components/sharkiq/vacuum.py +++ b/homeassistant/components/sharkiq/vacuum.py @@ -138,11 +138,6 @@ class SharkVacuumEntity(CoordinatorEntity, StateVacuumEntity): """Flag vacuum cleaner robot features that are supported.""" return SUPPORT_SHARKIQ - @property - def is_docked(self) -> bool | None: - """Is vacuum docked.""" - return self.sharkiq.get_property_value(Properties.DOCKED_STATUS) - @property def error_code(self) -> int | None: """Return the last observed error code (or None).""" @@ -175,7 +170,7 @@ class SharkVacuumEntity(CoordinatorEntity, StateVacuumEntity): In the app, these are (usually) handled by showing the robot as stopped and sending the user a notification. """ - if self.is_docked: + if self.sharkiq.get_property_value(Properties.CHARGING_STATUS): return STATE_DOCKED return self.operating_mode