From 667fde997da3e546e153858e65b61ffdebccde1f Mon Sep 17 00:00:00 2001 From: tronikos Date: Tue, 10 Jan 2023 10:20:28 -0800 Subject: [PATCH] Google Assistant SDK: Fix broadcast command in Japanese (#85636) Fix broadcast command in Japanese --- homeassistant/components/google_assistant_sdk/notify.py | 2 +- tests/components/google_assistant_sdk/test_notify.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/google_assistant_sdk/notify.py b/homeassistant/components/google_assistant_sdk/notify.py index 245ea935d46..f9a212b54c3 100644 --- a/homeassistant/components/google_assistant_sdk/notify.py +++ b/homeassistant/components/google_assistant_sdk/notify.py @@ -18,7 +18,7 @@ LANG_TO_BROADCAST_COMMAND = { "es": ("Anuncia {0}", "Anuncia en {1} {0}"), "fr": ("Diffuse {0}", "Diffuse dans {1} {0}"), "it": ("Trasmetti {0}", "Trasmetti in {1} {0}"), - "ja": ("{0}とほうそうして", "{0}と{1}にブロードキャストして"), + "ja": ("{0}とブロードキャストして", "{0}と{1}にブロードキャストして"), "ko": ("{0} 라고 방송해 줘", "{0} 라고 {1}에 방송해 줘"), "pt": ("Transmite {0}", "Transmite para {1} {0}"), } diff --git a/tests/components/google_assistant_sdk/test_notify.py b/tests/components/google_assistant_sdk/test_notify.py index ea660f921dd..85d421b1675 100644 --- a/tests/components/google_assistant_sdk/test_notify.py +++ b/tests/components/google_assistant_sdk/test_notify.py @@ -18,7 +18,7 @@ from .conftest import ComponentSetup, ExpectedCredentials ("en-US", "Dinner is served", "broadcast Dinner is served"), ("es-ES", "La cena está en la mesa", "Anuncia La cena está en la mesa"), ("ko-KR", "저녁 식사가 준비됐어요", "저녁 식사가 준비됐어요 라고 방송해 줘"), - ("ja-JP", "晩ご飯できたよ", "晩ご飯できたよとほうそうして"), + ("ja-JP", "晩ご飯できたよ", "晩ご飯できたよとブロードキャストして"), ], ids=["english", "spanish", "korean", "japanese"], )