binary sensor

This commit is contained in:
J. Nick Koston 2023-06-07 11:59:17 -05:00
parent 11cbfaba7b
commit 6705689042
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -1,8 +1,11 @@
import esphome.codegen as cg
from esphome.const import CONF_ID
import esphome.config_validation as cv
from esphome.components import cover
from .. import (
ratgdo_ns,
RATGDO,
register_ratgdo_child,
RATGDO_CLIENT_SCHMEA
)
@ -14,7 +17,7 @@ RATGDOCover = ratgdo_ns.class_(
)
CONFIG_SCHEMA = cover.COVER_SCHEMA.extend(RATGDO_CLIENT_SCHMEA)
CONFIG_SCHEMA = cover.COVER_SCHEMA.extend({cv.GenerateID(RATGDO): cv.declare_id()}).extend(RATGDO_CLIENT_SCHMEA)
async def to_code(config):