mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Only allow internal pins for dht sensor (#2940)
This commit is contained in:
parent
f48de6dd43
commit
b7aad39daf
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ DHT = dht_ns.class_("DHT", cg.PollingComponent)
|
||||||
CONFIG_SCHEMA = cv.Schema(
|
CONFIG_SCHEMA = cv.Schema(
|
||||||
{
|
{
|
||||||
cv.GenerateID(): cv.declare_id(DHT),
|
cv.GenerateID(): cv.declare_id(DHT),
|
||||||
cv.Required(CONF_PIN): pins.gpio_input_pin_schema,
|
cv.Required(CONF_PIN): pins.internal_gpio_input_pin_schema,
|
||||||
cv.Optional(CONF_TEMPERATURE): sensor.sensor_schema(
|
cv.Optional(CONF_TEMPERATURE): sensor.sensor_schema(
|
||||||
unit_of_measurement=UNIT_CELSIUS,
|
unit_of_measurement=UNIT_CELSIUS,
|
||||||
accuracy_decimals=1,
|
accuracy_decimals=1,
|
||||||
|
|
Loading…
Reference in a new issue