mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
show which component is causing translation errors (#22340)
This commit is contained in:
parent
49b92b5349
commit
c5f4aa0466
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user