From 44d62b8dac6cb421d2b714febe18bb78ba2cfea4 Mon Sep 17 00:00:00 2001 From: haudamekki <38363966+haudamekki@users.noreply.github.com> Date: Sat, 19 Oct 2024 21:03:24 +0200 Subject: [PATCH] Update __init__.py --- esphome/components/gp8211/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/components/gp8211/__init__.py b/esphome/components/gp8211/__init__.py index 271de9a8ff..11500444b0 100644 --- a/esphome/components/gp8211/__init__.py +++ b/esphome/components/gp8211/__init__.py @@ -30,6 +30,8 @@ CONFIG_SCHEMA = ( .extend(cv.COMPONENT_SCHEMA) .extend(i2c.i2c_device_schema(0x58)) ) + + async def to_code(config): var = cg.new_Pvariable(config[CONF_ID]) await cg.register_component(var, config)