mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-18 20:23:27 +02:00
14 lines
286 B
Python
14 lines
286 B
Python
import esphome.config_validation as cv
|
|
from esphome.components import button
|
|
|
|
|
|
CONFIG_SCHEMA = button.BUTTON_SCHEMA.extend(
|
|
{
|
|
cv.GenerateID(): cv.declare_id(button.Button),
|
|
}
|
|
).extend(cv.COMPONENT_SCHEMA)
|
|
|
|
|
|
async def to_code(config):
|
|
await button.new_button(config)
|