mirror of
https://github.com/esphome/esphome.git
synced 2025-09-21 20:52:20 +01:00
Fix docker build
This commit is contained in:
@@ -38,7 +38,7 @@ def to_code(config):
|
||||
make = variable(config[CONF_MAKE_ID], rhs)
|
||||
|
||||
if CONF_GAIN in config:
|
||||
add(make.Phx711.set_gain(GAINS[CONF_GAIN]))
|
||||
add(make.Phx711.set_gain(GAINS[config[CONF_GAIN]]))
|
||||
|
||||
sensor.setup_sensor(make.Phx711, make.Pmqtt, config)
|
||||
|
||||
|
Reference in New Issue
Block a user