removed duplicate constant definition

This commit is contained in:
j0ta29 2024-07-22 08:57:19 +00:00
parent 2d802a3547
commit 8b495ea941
2 changed files with 1 additions and 3 deletions

View file

@ -33,7 +33,6 @@ DAY_OF_WEEK = {
CONF_DAY_OF_WEEK = "day_of_week"
OptolinkComponent = optolink_ns.class_("Optolink", cg.Component)
CONF_OPTOLINK_ID = "optolink_id"
SENSOR_BASE_SCHEMA = cv.Schema(
{
cv.GenerateID(CONF_OPTOLINK_ID): cv.use_id(OptolinkComponent),

View file

@ -3,7 +3,7 @@ import esphome.codegen as cg
import esphome.config_validation as cv
from esphome.components import switch
from esphome.const import CONF_ADDRESS, CONF_ID, CONF_UPDATE_INTERVAL
from .. import SENSOR_BASE_SCHEMA, optolink_ns
from .. import CONF_OPTOLINK_ID, SENSOR_BASE_SCHEMA, optolink_ns
DEPENDENCIES = ["optolink"]
CODEOWNERS = ["@j0ta29"]
@ -13,7 +13,6 @@ OptolinkSwitch = optolink_ns.class_(
"OptolinkSwitch", switch.Switch, cg.PollingComponent
)
CONF_OPTOLINK_ID = "optolink_id"
CONFIG_SCHEMA = (
switch.SWITCH_SCHEMA.extend(
{