mirror of
https://github.com/home-assistant/core.git
synced 2025-06-20 04:57:08 +00:00
Fix colors in check_config script (#104069)
This commit is contained in:
parent
2387e4941b
commit
e2f6fbd59b
@ -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):
|
for key, value in sorted(layer.items(), key=sort_dict_key):
|
||||||
if isinstance(value, (dict, list)):
|
if isinstance(value, (dict, list)):
|
||||||
print(indent_str, str(key) + ":", line_info(value, **kwargs))
|
print(indent_str, str(key) + ":", line_info(value, **kwargs))
|
||||||
dump_dict(value, indent_count + 2)
|
dump_dict(value, indent_count + 2, **kwargs)
|
||||||
else:
|
else:
|
||||||
print(indent_str, str(key) + ":", value)
|
print(indent_str, str(key) + ":", value, line_info(key, **kwargs))
|
||||||
indent_str = indent_count * " "
|
indent_str = indent_count * " "
|
||||||
if isinstance(layer, Sequence):
|
if isinstance(layer, Sequence):
|
||||||
for i in layer:
|
for i in layer:
|
||||||
if isinstance(i, dict):
|
if isinstance(i, dict):
|
||||||
dump_dict(i, indent_count + 2, True)
|
dump_dict(i, indent_count + 2, True, **kwargs)
|
||||||
else:
|
else:
|
||||||
print(" ", indent_str, i)
|
print(" ", indent_str, i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user