This commit is contained in:
J. Nick Koston 2023-06-07 18:13:02 -05:00
parent b2b38630a8
commit 84da6ee10e
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ CONFIG_SCHEMA = number.number_schema(RATGDONumber).extend(
async def to_code(config): async def to_code(config):
var = cg.new_Pvariable(config[CONF_ID]) var = cg.new_Pvariable(config[CONF_ID])
await number.register_number(var, config, step=1) await number.register_number(var, config, step=1, min_value=0, max_value=4294967295)
await cg.register_component(var, config) await cg.register_component(var, config)
cg.add(var.set_number_type(config[CONF_TYPE])) cg.add(var.set_number_type(config[CONF_TYPE]))
await register_ratgdo_child(var, config) await register_ratgdo_child(var, config)