From 1a4c83ea347e1958aae48ee5681ea2e6ba1876ba Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 22 Oct 2026 22:02:42 +0200 Subject: [PATCH] Fix alexa vacuum hold and resume calling the removed start_pause action (#188080) --- homeassistant/components/alexa/handlers.py | 4 ++-- tests/components/alexa/test_smart_home.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/alexa/handlers.py b/homeassistant/components/alexa/handlers.py index 9bd1dc97f3dd..2d83cc2c4397 100644 --- a/homeassistant/components/alexa/handlers.py +++ b/homeassistant/components/alexa/handlers.py @@ -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) diff --git a/tests/components/alexa/test_smart_home.py b/tests/components/alexa/test_smart_home.py index 9fd2f5859fa8..e23ddfaad31c 100644 --- a/tests/components/alexa/test_smart_home.py +++ b/tests/components/alexa/test_smart_home.py @@ -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, )