mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
Set "CONF_" CI counter to fail on 3 or more definitions (#6668)
This commit is contained in:
@@ -1,15 +1,19 @@
|
||||
import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
from esphome import pins
|
||||
from esphome.const import CONF_ENABLE_TIME, CONF_ID, CONF_KEEP_ON_TIME, CONF_PIN
|
||||
from esphome.const import (
|
||||
CONF_ENABLE_ON_BOOT,
|
||||
CONF_ENABLE_TIME,
|
||||
CONF_ID,
|
||||
CONF_KEEP_ON_TIME,
|
||||
CONF_PIN,
|
||||
)
|
||||
|
||||
CODEOWNERS = ["@esphome/core"]
|
||||
power_supply_ns = cg.esphome_ns.namespace("power_supply")
|
||||
PowerSupply = power_supply_ns.class_("PowerSupply", cg.Component)
|
||||
MULTI_CONF = True
|
||||
|
||||
CONF_ENABLE_ON_BOOT = "enable_on_boot"
|
||||
|
||||
CONFIG_SCHEMA = cv.Schema(
|
||||
{
|
||||
cv.Required(CONF_ID): cv.declare_id(PowerSupply),
|
||||
|
||||
Reference in New Issue
Block a user