From c5f4aa046626d41e003174e1b2809a92ec0a3ae6 Mon Sep 17 00:00:00 2001 From: uchagani Date: Sun, 24 Mar 2019 02:06:55 -0400 Subject: [PATCH] show which component is causing translation errors (#22340) --- homeassistant/helpers/translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/helpers/translation.py b/homeassistant/helpers/translation.py index e1c5895b89a..63a6421d5f6 100644 --- a/homeassistant/helpers/translation.py +++ b/homeassistant/helpers/translation.py @@ -62,7 +62,7 @@ def component_translation_file(hass: HomeAssistantType, component: str, # It's a platform parts = component.split('.', 1) module = get_platform(hass, *parts) - assert module is not None + assert module is not None, component # Either within HA or custom_components # Either light/hue.py or hue/light.py