mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	Pass through additional arguments to create number (#5849)
This commit is contained in:
		| @@ -257,8 +257,8 @@ async def register_number( | ||||
|     ) | ||||
|  | ||||
|  | ||||
| async def new_number(config, *, min_value: float, max_value: float, step: float): | ||||
|     var = cg.new_Pvariable(config[CONF_ID]) | ||||
| async def new_number(config, *args, min_value: float, max_value: float, step: float): | ||||
|     var = cg.new_Pvariable(config[CONF_ID], *args) | ||||
|     await register_number( | ||||
|         var, config, min_value=min_value, max_value=max_value, step=step | ||||
|     ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user