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