diff --git a/components/showcase_component/__init__.py b/components/showcase_component/__init__.py index 2c6bae1..48cc60b 100644 --- a/components/showcase_component/__init__.py +++ b/components/showcase_component/__init__.py @@ -19,7 +19,7 @@ CONFIG_SCHEMA = cv.Schema( } ).extend(cv.COMPONENT_SCHEMA).extend(i2c.i2c_device_schema(CONF_I2C_ADDR)) -def to_code(config): +async def to_code(config): var = cg.new_Pvariable(config[CONF_ID]) upper = await cg.get_variable(config["upper"])