moved declaration of CONF_INTERNAL_PULLUP to sensor file

This commit is contained in:
minomy13 2024-11-13 16:58:59 +01:00
parent ebfce9115d
commit ffd19a21a2
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View file

@ -5,7 +5,6 @@ from esphome.components import sensor
from esphome.const import (
CONF_HUMIDITY,
CONF_ID,
CONF_INTERNAL_PULLUP,
CONF_MODEL,
CONF_PIN,
CONF_TEMPERATURE,
@ -31,6 +30,7 @@ DHT_MODELS = {
"DHT22_TYPE2": DHTModel.DHT_MODEL_DHT22_TYPE2,
}
DHT = dht_ns.class_("DHT", cg.PollingComponent)
CONF_INTERNAL_PULLUP = "use_internal_pullup"
CONFIG_SCHEMA = cv.Schema(
{

View file

@ -411,7 +411,6 @@ CONF_INTERLOCK = "interlock"
CONF_INTERNAL = "internal"
CONF_INTERNAL_FILTER = "internal_filter"
CONF_INTERNAL_FILTER_MODE = "internal_filter_mode"
CONF_INTERNAL_PULLUP = "use_internal_pullup"
CONF_INTERNAL_TEMPERATURE = "internal_temperature"
CONF_INTERRUPT = "interrupt"
CONF_INTERRUPT_PIN = "interrupt_pin"