mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	fix: update to_code function in DynamicLamp to use await for get_variable calls
This commit is contained in:
		| @@ -19,6 +19,6 @@ async def to_code(config): | ||||
|     var = cg.new_Pvariable(config[CONF_ID]) | ||||
|     await cg.register_component(var, config) | ||||
|     for outputPointer in config.get(config[CONF_AVAILABLE_OUTPUTS]): | ||||
|         output_ = yield cg.get_variable(outputPointer) | ||||
|         output_ = await cg.get_variable(outputPointer) | ||||
|         cg.add(var.add_available_output(output_)) | ||||
|     cg.add(var.set_save_mode(config[CONF_SAVE_MODE])) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user