Use CONF_DISCOVERY from esphome.const

This commit is contained in:
Pieter Kokx 2024-12-22 01:02:39 +01:00
parent a6fb4620b3
commit 9d4bfec921
No known key found for this signature in database
GPG Key ID: BD73BAB527D54451

View File

@ -3,7 +3,7 @@ from __future__ import annotations
import esphome.codegen as cg
from esphome.components import uart
import esphome.config_validation as cv
from esphome.const import CONF_DISABLE_CRC, CONF_ID
from esphome.const import CONF_DISABLE_CRC, CONF_DISCOVERY, CONF_ID
CODEOWNERS = ["@kokx"]
DEPENDENCIES = ["uart"]
@ -18,8 +18,6 @@ MULTI_CONF = True
CONF_DUCO_ID = "duco_id"
CONF_SEND_WAIT_TIME = "send_wait_time"
CONF_DISCOVERY = "discovery"
# A schema for components like sensors
DUCO_COMPONENT_SCHEMA = cv.Schema({cv.GenerateID(CONF_DUCO_ID): cv.use_id(Duco)})