From 54223fe06c5afa3d0c18007c1be41fec24f350ca Mon Sep 17 00:00:00 2001 From: Marco Ranieri Date: Mon, 14 Aug 2023 17:47:50 +0200 Subject: [PATCH] Enable Alexa Unlock directive (#97127) Co-authored-by: Jan Bouwhuis --- homeassistant/components/alexa/handlers.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/alexa/handlers.py b/homeassistant/components/alexa/handlers.py index 06ce4f88b56..3e995e9ffe2 100644 --- a/homeassistant/components/alexa/handlers.py +++ b/homeassistant/components/alexa/handlers.py @@ -474,7 +474,24 @@ async def async_api_unlock( context: ha.Context, ) -> AlexaResponse: """Process an unlock request.""" - if config.locale not in {"de-DE", "en-US", "ja-JP"}: + if config.locale not in { + "ar-SA", + "de-DE", + "en-AU", + "en-CA", + "en-GB", + "en-IN", + "en-US", + "es-ES", + "es-MX", + "es-US", + "fr-CA", + "fr-FR", + "hi-IN", + "it-IT", + "ja-JP", + "pt-BR", + }: msg = ( "The unlock directive is not supported for the following locales:" f" {config.locale}"