Compare commits

..

1 Commits

Author SHA1 Message Date
Brandon Chen
1194a96a99
Merge a022b36356 into 7c97b85f02 2025-08-15 13:18:47 +00:00

View File

@ -202,14 +202,12 @@ 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