mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 18:27:46 +01:00
Fix GPIO expression issue with no inverted set
This commit is contained in:
parent
d3ac5bfb27
commit
10607f2a51
1 changed files with 1 additions and 1 deletions
|
@ -424,7 +424,7 @@ def exp_gpio_pin_(obj, conf, default_mode):
|
|||
raise ESPHomeYAMLError(u"Unknown default mode {}".format(default_mode))
|
||||
|
||||
if conf.get(CONF_INVERTED) is None:
|
||||
return obj(conf[CONF_NUMBER], conf.get(CONF_MODE))
|
||||
return obj(conf[CONF_NUMBER], RawExpression(conf.get(CONF_MODE, default_mode)))
|
||||
return obj(conf[CONF_NUMBER], RawExpression(conf.get(CONF_MODE, default_mode)),
|
||||
conf[CONF_INVERTED])
|
||||
|
||||
|
|
Loading…
Reference in a new issue