mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 06:38:17 +00:00
ident...
This commit is contained in:
parent
3df61fb519
commit
591e3e905e
@ -592,13 +592,13 @@ def generic_gpio_pin_expression_(conf, mock_obj, default_mode):
|
||||
if default_mode == u'INPUT':
|
||||
mode = conf.get(CONF_MODE, u'INPUT')
|
||||
if mux == CONF_PCF8574:
|
||||
yield hub.make_input_pin(number,
|
||||
RawExpression('PCF8574_' + mode),
|
||||
inverted)
|
||||
yield hub.make_input_pin(number,
|
||||
RawExpression('PCF8574_' + mode),
|
||||
inverted)
|
||||
elif mux == CONF_MCP23017:
|
||||
yield hub.make_input_pin(number,
|
||||
RawExpression('MCP23017_' + mode),
|
||||
inverted)
|
||||
yield hub.make_input_pin(number,
|
||||
RawExpression('MCP23017_' + mode),
|
||||
inverted)
|
||||
|
||||
return
|
||||
elif default_mode == u'OUTPUT':
|
||||
|
Loading…
x
Reference in New Issue
Block a user