Fix alexa vacuum hold and resume calling the removed start_pause action (#188080)

This commit is contained in:
epenet
2026-10-22 23:02:42 +03:00
committed by GitHub
parent 18c789bd46
commit 1a4c83ea34
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2111,7 +2111,7 @@ async def async_api_hold(
service = timer.SERVICE_PAUSE
elif entity.domain == VACUUM_DOMAIN:
service = vacuum.SERVICE_START_PAUSE
service = vacuum.SERVICE_PAUSE
else:
raise AlexaInvalidDirectiveError(DIRECTIVE_NOT_SUPPORTED)
@@ -2138,7 +2138,7 @@ async def async_api_resume(
service = timer.SERVICE_START
elif entity.domain == VACUUM_DOMAIN:
service = vacuum.SERVICE_START_PAUSE
service = vacuum.SERVICE_START
else:
raise AlexaInvalidDirectiveError(DIRECTIVE_NOT_SUPPORTED)
+2 -2
View File
@@ -5595,7 +5595,7 @@ async def test_vacuum_pause(hass: HomeAssistant) -> None:
assert configuration["allowRemoteResume"] is True
await assert_request_calls_service(
"Alexa.TimeHoldController", "Hold", "vacuum#test_3", "vacuum.start_pause", hass
"Alexa.TimeHoldController", "Hold", "vacuum#test_3", "vacuum.pause", hass
)
@@ -5622,7 +5622,7 @@ async def test_vacuum_resume(hass: HomeAssistant) -> None:
"Alexa.TimeHoldController",
"Resume",
"vacuum#test_4",
"vacuum.start_pause",
"vacuum.start",
hass,
)