mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Fix GPIO input schema validator (#253)
This commit is contained in:
parent
3d49ffa134
commit
2b88c987da
2 changed files with 6 additions and 1 deletions
|
@ -268,7 +268,7 @@ GPIO_FULL_OUTPUT_PIN_SCHEMA = vol.Schema({
|
||||||
})
|
})
|
||||||
|
|
||||||
GPIO_FULL_INPUT_PIN_SCHEMA = vol.Schema({
|
GPIO_FULL_INPUT_PIN_SCHEMA = vol.Schema({
|
||||||
vol.Required(CONF_NUMBER): output_pin,
|
vol.Required(CONF_NUMBER): input_pin,
|
||||||
vol.Optional(CONF_MODE): pin_mode,
|
vol.Optional(CONF_MODE): pin_mode,
|
||||||
vol.Optional(CONF_INVERTED): cv.boolean,
|
vol.Optional(CONF_INVERTED): cv.boolean,
|
||||||
})
|
})
|
||||||
|
|
|
@ -528,6 +528,11 @@ binary_sensor:
|
||||||
format: "Multi Clicked SINGLE"
|
format: "Multi Clicked SINGLE"
|
||||||
level: warn
|
level: warn
|
||||||
id: binary_sensor1
|
id: binary_sensor1
|
||||||
|
- platform: gpio
|
||||||
|
pin:
|
||||||
|
number: GPIO9
|
||||||
|
mode: INPUT_PULLUP
|
||||||
|
name: "Living Room Window 2"
|
||||||
- platform: status
|
- platform: status
|
||||||
name: "Living Room Status"
|
name: "Living Room Status"
|
||||||
- platform: esp32_touch
|
- platform: esp32_touch
|
||||||
|
|
Loading…
Reference in a new issue