mirror of
				https://github.com/home-assistant/core.git
				synced 2025-11-03 16:09:36 +00:00 
			
		
		
		
	Fix colors in check_config script (#104069)
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user