mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 18:54:14 +01:00
removed duplicate constant definition
This commit is contained in:
parent
2d802a3547
commit
8b495ea941
2 changed files with 1 additions and 3 deletions
|
@ -33,7 +33,6 @@ DAY_OF_WEEK = {
|
||||||
CONF_DAY_OF_WEEK = "day_of_week"
|
CONF_DAY_OF_WEEK = "day_of_week"
|
||||||
|
|
||||||
OptolinkComponent = optolink_ns.class_("Optolink", cg.Component)
|
OptolinkComponent = optolink_ns.class_("Optolink", cg.Component)
|
||||||
CONF_OPTOLINK_ID = "optolink_id"
|
|
||||||
SENSOR_BASE_SCHEMA = cv.Schema(
|
SENSOR_BASE_SCHEMA = cv.Schema(
|
||||||
{
|
{
|
||||||
cv.GenerateID(CONF_OPTOLINK_ID): cv.use_id(OptolinkComponent),
|
cv.GenerateID(CONF_OPTOLINK_ID): cv.use_id(OptolinkComponent),
|
||||||
|
|
|
@ -3,7 +3,7 @@ import esphome.codegen as cg
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
from esphome.components import switch
|
from esphome.components import switch
|
||||||
from esphome.const import CONF_ADDRESS, CONF_ID, CONF_UPDATE_INTERVAL
|
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"]
|
DEPENDENCIES = ["optolink"]
|
||||||
CODEOWNERS = ["@j0ta29"]
|
CODEOWNERS = ["@j0ta29"]
|
||||||
|
@ -13,7 +13,6 @@ OptolinkSwitch = optolink_ns.class_(
|
||||||
"OptolinkSwitch", switch.Switch, cg.PollingComponent
|
"OptolinkSwitch", switch.Switch, cg.PollingComponent
|
||||||
)
|
)
|
||||||
|
|
||||||
CONF_OPTOLINK_ID = "optolink_id"
|
|
||||||
CONFIG_SCHEMA = (
|
CONFIG_SCHEMA = (
|
||||||
switch.SWITCH_SCHEMA.extend(
|
switch.SWITCH_SCHEMA.extend(
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue