show which component is causing translation errors (#22340)

This commit is contained in:
uchagani authored and Paulus Schoutsen committed 2019-03-23 23:06:55 -07:00
1 parent 49b92b5349
commit c5f4aa0466
1 file changed
+1 -1
+1 -1
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