Fix error messaging for cascading service calls (#136966)

This commit is contained in:
Abílio Costa
2025-01-31 10:10:57 +00:00
committed by GitHub
parent ab5583ed40
commit 3fb70316da
2 changed files with 8 additions and 8 deletions

View File

@@ -460,10 +460,10 @@ async def test_call_service_child_not_found(
"domain_test.test_service which was not found."
)
assert msg["error"]["translation_placeholders"] == {
"domain": "non",
"service": "existing",
"child_domain": "domain_test",
"child_service": "test_service",
"domain": "domain_test",
"service": "test_service",
"child_domain": "non",
"child_service": "existing",
}
assert msg["error"]["translation_key"] == "child_service_not_found"
assert msg["error"]["translation_domain"] == "websocket_api"