Fix PCF8574 inverted KeyError #12

This commit is contained in:
Otto Winter 2018-05-15 11:22:55 +02:00
parent 9979ee6ddf
commit 8639eb1b27
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -180,7 +180,7 @@ def pin_mode(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_INVERTED): cv.boolean, vol.Optional(CONF_INVERTED, default=False): cv.boolean,
}) })
PCF8574_INPUT_PIN_SCHEMA = PCF8574_OUTPUT_PIN_SCHEMA.extend({ PCF8574_INPUT_PIN_SCHEMA = PCF8574_OUTPUT_PIN_SCHEMA.extend({