From 0afd50e1e7fd28dabe26bb5fc60ed0024ca92d56 Mon Sep 17 00:00:00 2001 From: Brandon Date: Mon, 18 Aug 2025 14:58:53 +0800 Subject: [PATCH] fix: resolve pylint issues in vacuum RETURN_HOME implementation - Remove trailing whitespace after identify action - Split long comment line to meet 80-character limit - Wrap long assignment statement for better readability - Maintains functionality while passing pylint validation --- custom_components/xiaomi_home/vacuum.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/custom_components/xiaomi_home/vacuum.py b/custom_components/xiaomi_home/vacuum.py index c02f925..7a61596 100644 --- a/custom_components/xiaomi_home/vacuum.py +++ b/custom_components/xiaomi_home/vacuum.py @@ -202,12 +202,14 @@ class Vacuum(MIoTServiceEntity, StateVacuumEntity): elif action.name == 'identify': self._attr_supported_features |= VacuumEntityFeature.LOCATE self._action_identify = action - - # Use start-charge from battery service as fallback if stop-and-gocharge is not available + + # Use start-charge from battery service as fallback + # if stop-and-gocharge is not available if self._action_stop_and_gocharge is None: for action in entity_data.actions: if action.name == 'start-charge': - self._attr_supported_features |= VacuumEntityFeature.RETURN_HOME + self._attr_supported_features |= ( + VacuumEntityFeature.RETURN_HOME) self._action_stop_and_gocharge = action break