Compare commits

..

1 Commits

Author SHA1 Message Date
Brandon Chen
fb3fbdeea1
Merge 8aa0c5d2ca into 7c97b85f02 2025-08-07 14:03:04 +08:00
2 changed files with 7 additions and 13 deletions

View File

@ -160,6 +160,13 @@ SPEC_DEVICE_TRANS_MAP: dict = {
}
},
'optional': {
'vacuum-extend': {
'optional': {
'actions': {
'stop-and-gocharge'
}
}
},
'identify': {
'required': {
'actions': {'identify'}
@ -170,11 +177,6 @@ SPEC_DEVICE_TRANS_MAP: dict = {
'properties': {
'battery-level': {'read'}
}
},
'optional': {
'actions': {
'start-charge'
}
}
}
},

View File

@ -202,14 +202,6 @@ 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
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._action_stop_and_gocharge = action
break
async def async_start(self) -> None:
"""Start or resume the cleaning task."""