mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
Only allow internal pins for dht sensor (#2940)
This commit is contained in:
parent
ffd4280d6c
commit
fc0a6546a2
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ DHT = dht_ns.class_("DHT", cg.PollingComponent)
|
|||
CONFIG_SCHEMA = cv.Schema(
|
||||
{
|
||||
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(
|
||||
unit_of_measurement=UNIT_CELSIUS,
|
||||
accuracy_decimals=1,
|
||||
|
|
Loading…
Reference in a new issue