diff --git a/esphome/components/template/button/__init__.py b/esphome/components/template/button/__init__.py index a8bf595942..2ad5e54c80 100644 --- a/esphome/components/template/button/__init__.py +++ b/esphome/components/template/button/__init__.py @@ -9,7 +9,7 @@ CONFIG_SCHEMA = button.BUTTON_SCHEMA.extend( { cv.GenerateID(): cv.declare_id(TemplateButton), } -).extend(cv.COMPONENT_SCHEMA) +) async def to_code(config):