Skip to content

Commit

Permalink
show which component is causing translation errors (#22340)
Browse files Browse the repository at this point in the history
  • Loading branch information
uchagani authored and balloob committed Mar 24, 2019
1 parent 49b92b5 commit c5f4aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/helpers/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5f4aa0

Please sign in to comment.