mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 12:06:26 +01:00
Only allow internal pins for dht sensor (#2940)
This commit is contained in:
parent
ffd4280d6c
commit
fc0a6546a2
@ -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 New Issue
Block a user