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, )