From 793da3e37fc3acf465eb2fc61e89fe00ee462229 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Mon, 6 Jul 2026 13:21:40 +0200 Subject: [PATCH] Remove previously deprecated battery prop from LG thinq (#175685) --- homeassistant/components/lg_thinq/vacuum.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/homeassistant/components/lg_thinq/vacuum.py b/homeassistant/components/lg_thinq/vacuum.py index cab183044d38..3f997167dd36 100644 --- a/homeassistant/components/lg_thinq/vacuum.py +++ b/homeassistant/components/lg_thinq/vacuum.py @@ -65,15 +65,6 @@ ROBOT_STATUS_TO_HA = { "clean_select_gozone": VacuumActivity.CLEANING, "error": VacuumActivity.ERROR, } -ROBOT_BATT_TO_HA = { - "moveless": 5, - "dock_level": 5, - "low": 30, - "mid": 50, - "high": 90, - "full": 100, - "over_charge": 100, -} _LOGGER = logging.getLogger(__name__) @@ -106,7 +97,6 @@ class ThinQStateVacuumEntity(ThinQEntity, StateVacuumEntity): _attr_supported_features = ( VacuumEntityFeature.SEND_COMMAND | VacuumEntityFeature.STATE - | VacuumEntityFeature.BATTERY | VacuumEntityFeature.START | VacuumEntityFeature.PAUSE | VacuumEntityFeature.RETURN_HOME @@ -120,19 +110,12 @@ class ThinQStateVacuumEntity(ThinQEntity, StateVacuumEntity): # Update state. self._attr_activity = ROBOT_STATUS_TO_HA.get(self.data.current_state) - # Update battery. - if (level := self.data.battery) is not None: - self._attr_battery_level = ( - level if isinstance(level, int) else ROBOT_BATT_TO_HA.get(level, 0) - ) - _LOGGER.debug( - "[%s:%s] update status: %s -> %s (battery_level=%s)", + "[%s:%s] update status: %s -> %s", self.coordinator.device_name, self.property_id, self.data.current_state, self.state, - self.battery_level, ) @override