mirror of
https://github.com/esphome/esphome.git
synced 2025-03-16 07:38:17 +00:00
actualy define mux in the loop.
fix lint errors.
This commit is contained in:
parent
591e3e905e
commit
47df937e2b
@ -585,7 +585,8 @@ def generic_gpio_pin_expression_(conf, mock_obj, default_mode):
|
||||
return
|
||||
number = conf[CONF_NUMBER]
|
||||
inverted = conf.get(CONF_INVERTED)
|
||||
if any(mux in conf for mux in [CONF_PCF8574, CONF_MCP23017]):
|
||||
for mux in [CONF_PCF8574, CONF_MCP23017]:
|
||||
if mux in conf:
|
||||
hub = None
|
||||
for hub in get_variable(conf[mux]):
|
||||
yield None
|
||||
|
Loading…
x
Reference in New Issue
Block a user