mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Improve service validation exception test and translation key (#115843)
* Small improvement to service validation exception test and translation key * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Refactor string assertion --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user