From ffd19a21a2d32273372feb27a4b0848e749f7013 Mon Sep 17 00:00:00 2001 From: minomy13 Date: Wed, 13 Nov 2024 16:58:59 +0100 Subject: [PATCH] moved declaration of CONF_INTERNAL_PULLUP to sensor file --- esphome/components/dht/sensor.py | 2 +- esphome/const.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/esphome/components/dht/sensor.py b/esphome/components/dht/sensor.py index f32f822fa3..0859e9d632 100644 --- a/esphome/components/dht/sensor.py +++ b/esphome/components/dht/sensor.py @@ -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( { diff --git a/esphome/const.py b/esphome/const.py index b8b34045c7..d42ee5ee72 100644 --- a/esphome/const.py +++ b/esphome/const.py @@ -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"