mirror of
https://github.com/esphome/esphome.git
synced 2024-12-21 16:27:44 +01:00
Improve PCF8574 validation
This commit is contained in:
parent
e04285581c
commit
1a9ff55a61
@ -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 New Issue
Block a user