mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-19 04:33:27 +02:00
12 lines
255 B
Python
12 lines
255 B
Python
from esphome.components import button
|
|
|
|
from .. import template_ns
|
|
|
|
TemplateButton = template_ns.class_("TemplateButton", button.Button)
|
|
|
|
CONFIG_SCHEMA = button.button_schema(TemplateButton)
|
|
|
|
|
|
async def to_code(config):
|
|
await button.new_button(config)
|