From e2f6fbd59b4f7f2bdd20617fb65fce5edf90a4df Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Fri, 17 Nov 2023 19:21:04 +0100 Subject: [PATCH] Fix colors in check_config script (#104069) --- homeassistant/scripts/check_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/scripts/check_config.py b/homeassistant/scripts/check_config.py index 25922ab1f81..0e00d0b75f2 100644 --- a/homeassistant/scripts/check_config.py +++ b/homeassistant/scripts/check_config.py @@ -290,13 +290,13 @@ def dump_dict(layer, indent_count=3, listi=False, **kwargs): for key, value in sorted(layer.items(), key=sort_dict_key): if isinstance(value, (dict, list)): print(indent_str, str(key) + ":", line_info(value, **kwargs)) - dump_dict(value, indent_count + 2) + dump_dict(value, indent_count + 2, **kwargs) else: - print(indent_str, str(key) + ":", value) + print(indent_str, str(key) + ":", value, line_info(key, **kwargs)) indent_str = indent_count * " " if isinstance(layer, Sequence): for i in layer: if isinstance(i, dict): - dump_dict(i, indent_count + 2, True) + dump_dict(i, indent_count + 2, True, **kwargs) else: print(" ", indent_str, i)