Compare commits

..

2 Commits

Author SHA1 Message Date
Brandon Chen
649217b345
Merge 0afd50e1e7 into 7c97b85f02 2025-08-18 07:00:44 +00:00
Brandon
0afd50e1e7 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
2025-08-18 14:58:53 +08:00

View File

@ -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