Add correct line numbers for yaml include directives (#5303)

This commit is contained in:
Johann Kellerman 2017-01-14 07:13:17 +02:00 committed by Paulus Schoutsen
parent 0cf3c22da0
commit b67cce7215
2 changed files with 28 additions and 19 deletions

View file

@ -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__', '?'))