From 54bbfbc20eb3afa1b4a9810bf2171178ad2afa85 Mon Sep 17 00:00:00 2001 From: David Martin <51385971+3ative@users.noreply.github.com> Date: Wed, 2 Aug 2023 21:48:09 +0100 Subject: [PATCH] Update vacuum.py to use "StateVacuumEntity" The custom integration eufy_vacuum is extending the deprecated base class VacuumEntity instead of StateVacuumEntity. Please report it to the author of the eufy_vacuum custom integration. Works here and seems to address my issue: https://github.com/mitchellrj/eufy_robovac/issues/38 --- eufy_robovac/vacuum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eufy_robovac/vacuum.py b/eufy_robovac/vacuum.py index 0e328fd..c72b7b7 100644 --- a/eufy_robovac/vacuum.py +++ b/eufy_robovac/vacuum.py @@ -8,7 +8,7 @@ SUPPORT_BATTERY, SUPPORT_CLEAN_SPOT, SUPPORT_FAN_SPEED, SUPPORT_LOCATE, SUPPORT_PAUSE, SUPPORT_RETURN_HOME, SUPPORT_STATUS, SUPPORT_START, SUPPORT_TURN_ON, SUPPORT_TURN_OFF, - VacuumEntity) + StateVacuumEntity) from . import robovac @@ -50,7 +50,7 @@ def setup_platform(hass, config, add_entities, device_config=None): add_entities([EufyVacuum(device_config)], True) -class EufyVacuum(VacuumEntity): +class EufyVacuum(StateVacuumEntity): """Representation of a Eufy vacuum cleaner.""" def __init__(self, device_config):