mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 16:08:10 +01:00
Fix PCF8574 inverted KeyError #12
This commit is contained in:
parent
9979ee6ddf
commit
8639eb1b27
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue