Add correct line numbers for yaml include directives (#5303)
This commit is contained in:
parent
0cf3c22da0
commit
b67cce7215
2 changed files with 28 additions and 19 deletions
|
@ -606,7 +606,7 @@ def async_log_exception(ex, domain, config, hass):
|
|||
message += '{}.'.format(humanize_error(config, ex))
|
||||
|
||||
domain_config = config.get(domain, config)
|
||||
message += " (See {}:{}). ".format(
|
||||
message += " (See {}, line {}). ".format(
|
||||
getattr(domain_config, '__config_file__', '?'),
|
||||
getattr(domain_config, '__line__', '?'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue