Add extra precision to ADC voltage (from 1 decimal to 2 decimals) (#77889)

This commit is contained in:
alakdae 2022-09-12 15:53:03 +02:00 committed by GitHub
parent 253d355526
commit 844074c3a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
),