mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
Pass through additional arguments to create number (#5849)
This commit is contained in:
parent
1e77271858
commit
a8bc5ef46f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue