This commit is contained in:
J. Nick Koston 2023-06-05 13:27:40 -05:00
parent d9a1fba168
commit 32b886a676
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -21,8 +21,7 @@ CONFIG_SCHEMA = cv.Schema(
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 cg.register_component(var, config) await cg.register_component(var, config)
rolling_codes = await cg.get_variable(config[CONF_ROLLING_CODES]) cg.add(var.set_rolling_codes(config[CONF_ROLLING_CODES]))
cg.add(var.set_rolling_codes(rolling_codes))
cg.add_library( cg.add_library(
name="secplus", name="secplus",
repository="https://github.com/bdraco/secplus", repository="https://github.com/bdraco/secplus",