mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	
				
					committed by
					
						 Otto Winter
						Otto Winter
					
				
			
			
				
	
			
			
			
						parent
						
							d88634b196
						
					
				
				
					commit
					65d0dd47f3
				
			| @@ -25,7 +25,7 @@ def to_code(config): | ||||
|  | ||||
|     if CONF_LAMBDA in config: | ||||
|         template_ = process_lambda(config[CONF_LAMBDA], []) | ||||
|         add(make.Ptemplate.set_state_lambda(template_)) | ||||
|         add(make.Ptemplate_.set_state_lambda(template_)) | ||||
|     if CONF_OPEN_ACTION in config: | ||||
|         actions = automation.build_actions(config[CONF_OPEN_ACTION], NoArg) | ||||
|         add(make.Ptemplate_.add_open_actions(actions)) | ||||
|   | ||||
| @@ -24,7 +24,7 @@ def to_code(config): | ||||
|  | ||||
|     if CONF_LAMBDA in config: | ||||
|         template_ = process_lambda(config[CONF_LAMBDA], []) | ||||
|         add(make.Ptemplate.set_state_lambda(template_)) | ||||
|         add(make.Ptemplate_.set_state_lambda(template_)) | ||||
|     if CONF_TURN_OFF_ACTION in config: | ||||
|         actions = automation.build_actions(config[CONF_TURN_OFF_ACTION], NoArg) | ||||
|         add(make.Ptemplate_.add_turn_off_actions(actions)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user