From 701825ddba3b02b4f7172d9dabd28fdb132e0043 Mon Sep 17 00:00:00 2001 From: Tom Date: Thu, 5 Dec 2024 08:14:51 +0100 Subject: [PATCH] Align exception-translations with translation directive As part of #2484 --- .../rules/exception-translations.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/core/integration-quality-scale/rules/exception-translations.md b/docs/core/integration-quality-scale/rules/exception-translations.md index 464a2b18fd0..33be56ec96a 100644 --- a/docs/core/integration-quality-scale/rules/exception-translations.md +++ b/docs/core/integration-quality-scale/rules/exception-translations.md @@ -44,8 +44,12 @@ async def async_set_schedule(call: ServiceCall) -> ServiceResponse: ```json { "exceptions": { - "end_date_before_start_date": "The end date cannot be before the start date.", - "cannot_connect_to_schedule": "Cannot connect to the schedule." + "end_date_before_start_date": { + "message": "The end date cannot be before the start date." + }, + "cannot_connect_to_schedule": { + "message": "Cannot connect to the schedule." + } } } ```