mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Suggested fix for empty domain (#555)
* Suggested fix for empty domain Signed-off-by: delphi <cpp.create@gmail.com> * Added proposed changes Signed-off-by: delphi <cpp.create@gmail.com>
This commit is contained in:
		
				
					committed by
					
						 Otto Winter
						Otto Winter
					
				
			
			
				
	
			
			
			
						parent
						
							df50b95e5a
						
					
				
				
					commit
					9ed06444e1
				
			| @@ -450,7 +450,9 @@ def validate_config(config): | ||||
|         result.remove_output_path([domain], domain) | ||||
|  | ||||
|         # Ensure conf is a list | ||||
|         if not isinstance(conf, list) and conf: | ||||
|         if not conf: | ||||
|             result[domain] = conf = [] | ||||
|         elif not isinstance(conf, list): | ||||
|             result[domain] = conf = [conf] | ||||
|  | ||||
|         for i, p_config in enumerate(conf): | ||||
|   | ||||
| @@ -238,3 +238,6 @@ interval: | ||||
|   interval: 5s | ||||
|   then: | ||||
|     - logger.log: "Interval Run" | ||||
|  | ||||
| display: | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user