1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 15:18:16 +00:00

actualy define mux in the loop.

fix lint errors.
This commit is contained in:
Lazar Obradovic 2018-10-16 13:15:21 +02:00
parent 591e3e905e
commit 47df937e2b

View File

@ -585,7 +585,8 @@ def generic_gpio_pin_expression_(conf, mock_obj, default_mode):
return return
number = conf[CONF_NUMBER] number = conf[CONF_NUMBER]
inverted = conf.get(CONF_INVERTED) 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 hub = None
for hub in get_variable(conf[mux]): for hub in get_variable(conf[mux]):
yield None yield None