From d78e39d5683d63c94c490817e37147e89e780519 Mon Sep 17 00:00:00 2001 From: amitfin Date: Fri, 4 Aug 2023 13:51:04 +0300 Subject: [PATCH] Fix allow_name_translation logic (#97701) --- script/hassfest/translations.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/hassfest/translations.py b/script/hassfest/translations.py index 1754c166ef7..22c3e927703 100644 --- a/script/hassfest/translations.py +++ b/script/hassfest/translations.py @@ -61,8 +61,9 @@ def allow_name_translation(integration: Integration) -> bool: """Validate that the translation name is not the same as the integration name.""" # Only enforce for core because custom integrations can't be # added to allow list. - return integration.core and ( - integration.domain in ALLOW_NAME_TRANSLATION + return ( + not integration.core + or integration.domain in ALLOW_NAME_TRANSLATION or integration.quality_scale == "internal" )