mirror of
https://github.com/esphome/esphome.git
synced 2025-01-18 20:10:55 +00:00
Pass through additional arguments to create number (#5849)
This commit is contained in:
parent
1e77271858
commit
a8bc5ef46f
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user