From e8097f3bbdd5230d8b3713e93fd52694bdf69f94 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Tue, 1 Oct 2024 14:50:34 +0200 Subject: [PATCH] fix --- esphome/components/usb_device/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/usb_device/__init__.py b/esphome/components/usb_device/__init__.py index 1f0bd0b60e..88ed5e71d3 100644 --- a/esphome/components/usb_device/__init__.py +++ b/esphome/components/usb_device/__init__.py @@ -10,7 +10,6 @@ from esphome.components.esp32.const import ( VARIANT_ESP32S2, VARIANT_ESP32S3, ) -import esphome.final_validate as fv CODEOWNERS = ["@tomaszduda23"] CONF_USB_DEVICE_ID = "usb_device_id" @@ -38,6 +37,7 @@ CONFIG_SCHEMA = cv.All( _validate_variant, ) + async def to_code(config): var = cg.new_Pvariable(config[CONF_ID]) await cg.register_component(var, config)