Migrate some constants to core code (#6692)

This commit is contained in:
Clyde Stubbs
2024-05-08 05:26:04 +10:00
committed by GitHub
parent 5edf4970bd
commit 829bfbdaa4
9 changed files with 17 additions and 15 deletions
@@ -1,12 +1,10 @@
import esphome.codegen as cg
import esphome.config_validation as cv
from esphome.components import binary_sensor
from esphome.const import CONF_ROW, CONF_COL
from .. import SX1509Component, sx1509_ns, CONF_SX1509_ID
CONF_ROW = "row"
CONF_COL = "col"
DEPENDENCIES = ["sx1509"]
SX1509BinarySensor = sx1509_ns.class_("SX1509BinarySensor", binary_sensor.BinarySensor)