mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
Improve PCF8574 validation
This commit is contained in:
parent
e04285581c
commit
1a9ff55a61
1 changed files with 1 additions and 0 deletions
|
@ -203,6 +203,7 @@ def shorthand_input_pin(value):
|
||||||
PCF8574_OUTPUT_PIN_SCHEMA = vol.Schema({
|
PCF8574_OUTPUT_PIN_SCHEMA = vol.Schema({
|
||||||
vol.Required(CONF_PCF8574): cv.variable_id,
|
vol.Required(CONF_PCF8574): cv.variable_id,
|
||||||
vol.Required(CONF_NUMBER): vol.Coerce(int),
|
vol.Required(CONF_NUMBER): vol.Coerce(int),
|
||||||
|
vol.Optional(CONF_MODE): vol.All(vol.Upper, "OUTPUT"),
|
||||||
vol.Optional(CONF_INVERTED, default=False): cv.boolean,
|
vol.Optional(CONF_INVERTED, default=False): cv.boolean,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue