diff --git a/homeassistant/components/homeassistant/strings.json b/homeassistant/components/homeassistant/strings.json index d46a2e50bfd..09b2f17c947 100644 --- a/homeassistant/components/homeassistant/strings.json +++ b/homeassistant/components/homeassistant/strings.json @@ -192,7 +192,7 @@ "service_not_found": { "message": "Service {domain}.{service} not found." }, - "service_does_not_supports_reponse": { + "service_does_not_support_response": { "message": "A service which does not return responses can't be called with {return_response}." }, "service_lacks_response_request": { diff --git a/homeassistant/core.py b/homeassistant/core.py index 919e0adb758..8471d2c4dcc 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -2589,7 +2589,7 @@ class ServiceRegistry: if handler.supports_response is SupportsResponse.NONE: raise ServiceValidationError( translation_domain=DOMAIN, - translation_key="service_does_not_supports_reponse", + translation_key="service_does_not_support_response", translation_placeholders={ "return_response": "return_response=True" }, diff --git a/tests/test_core.py b/tests/test_core.py index 8f0d7f53277..ce71fcd42e5 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1803,9 +1803,9 @@ async def test_services_call_return_response_requires_blocking( blocking=False, return_response=True, ) - assert ( - str(exc.value) - == "A non blocking service call with argument blocking=False can't be used together with argument return_response=True" + assert str(exc.value) == ( + "A non blocking service call with argument blocking=False " + "can't be used together with argument return_response=True" )