mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
moved declaration of CONF_INTERNAL_PULLUP to sensor file
This commit is contained in:
parent
ebfce9115d
commit
ffd19a21a2
2 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ from esphome.components import sensor
|
||||||
from esphome.const import (
|
from esphome.const import (
|
||||||
CONF_HUMIDITY,
|
CONF_HUMIDITY,
|
||||||
CONF_ID,
|
CONF_ID,
|
||||||
CONF_INTERNAL_PULLUP,
|
|
||||||
CONF_MODEL,
|
CONF_MODEL,
|
||||||
CONF_PIN,
|
CONF_PIN,
|
||||||
CONF_TEMPERATURE,
|
CONF_TEMPERATURE,
|
||||||
|
@ -31,6 +30,7 @@ DHT_MODELS = {
|
||||||
"DHT22_TYPE2": DHTModel.DHT_MODEL_DHT22_TYPE2,
|
"DHT22_TYPE2": DHTModel.DHT_MODEL_DHT22_TYPE2,
|
||||||
}
|
}
|
||||||
DHT = dht_ns.class_("DHT", cg.PollingComponent)
|
DHT = dht_ns.class_("DHT", cg.PollingComponent)
|
||||||
|
CONF_INTERNAL_PULLUP = "use_internal_pullup"
|
||||||
|
|
||||||
CONFIG_SCHEMA = cv.Schema(
|
CONFIG_SCHEMA = cv.Schema(
|
||||||
{
|
{
|
||||||
|
|
|
@ -411,7 +411,6 @@ CONF_INTERLOCK = "interlock"
|
||||||
CONF_INTERNAL = "internal"
|
CONF_INTERNAL = "internal"
|
||||||
CONF_INTERNAL_FILTER = "internal_filter"
|
CONF_INTERNAL_FILTER = "internal_filter"
|
||||||
CONF_INTERNAL_FILTER_MODE = "internal_filter_mode"
|
CONF_INTERNAL_FILTER_MODE = "internal_filter_mode"
|
||||||
CONF_INTERNAL_PULLUP = "use_internal_pullup"
|
|
||||||
CONF_INTERNAL_TEMPERATURE = "internal_temperature"
|
CONF_INTERNAL_TEMPERATURE = "internal_temperature"
|
||||||
CONF_INTERRUPT = "interrupt"
|
CONF_INTERRUPT = "interrupt"
|
||||||
CONF_INTERRUPT_PIN = "interrupt_pin"
|
CONF_INTERRUPT_PIN = "interrupt_pin"
|
||||||
|
|
Loading…
Reference in a new issue