Fix GPIO input schema validator (#253)

This commit is contained in:
Otto Winter 2018-12-02 13:16:02 +01:00 committed by GitHub
parent 3d49ffa134
commit 2b88c987da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -268,7 +268,7 @@ GPIO_FULL_OUTPUT_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_INVERTED): cv.boolean,
})

View file

@ -528,6 +528,11 @@ binary_sensor:
format: "Multi Clicked SINGLE"
level: warn
id: binary_sensor1
- platform: gpio
pin:
number: GPIO9
mode: INPUT_PULLUP
name: "Living Room Window 2"
- platform: status
name: "Living Room Status"
- platform: esp32_touch