Move CONF_INTERRUPT_PIN to const.py (#4014)

This commit is contained in:
Jesse Hills
2022-11-10 22:49:04 +13:00
committed by GitHub
parent 2c2e68123a
commit 27a339fa12
4 changed files with 8 additions and 10 deletions
+5 -4
View File
@@ -3,18 +3,19 @@ import esphome.config_validation as cv
from esphome import pins
from esphome.components import spi, touchscreen
from esphome.const import CONF_ID, CONF_THRESHOLD
from esphome.const import CONF_ID, CONF_THRESHOLD, CONF_INTERRUPT_PIN
CODEOWNERS = ["@numo68", "@nielsnl68"]
DEPENDENCIES = ["spi"]
XPT2046_ns = cg.esphome_ns.namespace("xpt2046")
XPT2046Component = XPT2046_ns.class_(
"XPT2046Component", touchscreen.Touchscreen, cg.PollingComponent, spi.SPIDevice
"XPT2046Component",
touchscreen.Touchscreen,
cg.PollingComponent,
spi.SPIDevice,
)
CONF_INTERRUPT_PIN = "interrupt_pin"
CONF_REPORT_INTERVAL = "report_interval"
CONF_CALIBRATION_X_MIN = "calibration_x_min"
CONF_CALIBRATION_X_MAX = "calibration_x_max"