From 844074c3a9b1bb376a291fa1ba1ad53d9d951ad6 Mon Sep 17 00:00:00 2001 From: alakdae Date: Mon, 12 Sep 2022 15:53:03 +0200 Subject: [PATCH] Add extra precision to ADC voltage (from 1 decimal to 2 decimals) (#77889) --- homeassistant/components/shelly/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/shelly/sensor.py b/homeassistant/components/shelly/sensor.py index c37bbbd5ff8..bc55aa3e865 100644 --- a/homeassistant/components/shelly/sensor.py +++ b/homeassistant/components/shelly/sensor.py @@ -281,7 +281,7 @@ SENSORS: Final = { key="adc|adc", name="ADC", native_unit_of_measurement=ELECTRIC_POTENTIAL_VOLT, - value=lambda value: round(value, 1), + value=lambda value: round(value, 2), device_class=SensorDeviceClass.VOLTAGE, state_class=SensorStateClass.MEASUREMENT, ),