mirror of
https://github.com/esphome/esphome.git
synced 2025-01-18 20:51:31 +01:00
Use CONF_DISCOVERY from esphome.const
This commit is contained in:
parent
a6fb4620b3
commit
9d4bfec921
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||||||
import esphome.codegen as cg
|
import esphome.codegen as cg
|
||||||
from esphome.components import uart
|
from esphome.components import uart
|
||||||
import esphome.config_validation as cv
|
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"]
|
CODEOWNERS = ["@kokx"]
|
||||||
DEPENDENCIES = ["uart"]
|
DEPENDENCIES = ["uart"]
|
||||||
@ -18,8 +18,6 @@ MULTI_CONF = True
|
|||||||
CONF_DUCO_ID = "duco_id"
|
CONF_DUCO_ID = "duco_id"
|
||||||
CONF_SEND_WAIT_TIME = "send_wait_time"
|
CONF_SEND_WAIT_TIME = "send_wait_time"
|
||||||
|
|
||||||
CONF_DISCOVERY = "discovery"
|
|
||||||
|
|
||||||
# A schema for components like sensors
|
# A schema for components like sensors
|
||||||
DUCO_COMPONENT_SCHEMA = cv.Schema({cv.GenerateID(CONF_DUCO_ID): cv.use_id(Duco)})
|
DUCO_COMPONENT_SCHEMA = cv.Schema({cv.GenerateID(CONF_DUCO_ID): cv.use_id(Duco)})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user