From 55caf4f648230c0f21d23942cca27b20f261e2d0 Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 1 Mar 2019 16:43:51 +0100 Subject: [PATCH] Update ads1115.py (#468) GAIN setting is pointing to the wrong value --- esphome/components/sensor/ads1115.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/sensor/ads1115.py b/esphome/components/sensor/ads1115.py index 8d03fcc558..e9c3e79452 100644 --- a/esphome/components/sensor/ads1115.py +++ b/esphome/components/sensor/ads1115.py @@ -25,7 +25,7 @@ MUX = { ADS1115Gain = sensor.sensor_ns.enum('ADS1115Gain') GAIN = { '6.144': ADS1115Gain.ADS1115_GAIN_6P144, - '4.096': ADS1115Gain.ADS1115_GAIN_6P096, + '4.096': ADS1115Gain.ADS1115_GAIN_4P096, '2.048': ADS1115Gain.ADS1115_GAIN_2P048, '1.024': ADS1115Gain.ADS1115_GAIN_1P024, '0.512': ADS1115Gain.ADS1115_GAIN_0P512,