mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 02:21:40 +02:00
Add extra precision to ADC voltage (from 1 decimal to 2 decimals) (#77889)
This commit is contained in:
@@ -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,
|
||||
),
|
||||
|
Reference in New Issue
Block a user