show which component is causing translation errors (#22340)

This commit is contained in:
uchagani 2019-03-24 02:06:55 -04:00 committed by Paulus Schoutsen
parent 49b92b5349
commit c5f4aa0466

View file

@ -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