mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Add extra precision to ADC voltage (from 1 decimal to 2 decimals) (#77889)
This commit is contained in:
parent
253d355526
commit
844074c3a9
@ -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,
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user