Improve PCF8574 validation

This commit is contained in:
Otto Winter 2018-05-17 21:56:50 +02:00
parent e04285581c
commit 1a9ff55a61
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -203,6 +203,7 @@ def shorthand_input_pin(value):
PCF8574_OUTPUT_PIN_SCHEMA = vol.Schema({
vol.Required(CONF_PCF8574): cv.variable_id,
vol.Required(CONF_NUMBER): vol.Coerce(int),
vol.Optional(CONF_MODE): vol.All(vol.Upper, "OUTPUT"),
vol.Optional(CONF_INVERTED, default=False): cv.boolean,
})