mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +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",
|
key="adc|adc",
|
||||||
name="ADC",
|
name="ADC",
|
||||||
native_unit_of_measurement=ELECTRIC_POTENTIAL_VOLT,
|
native_unit_of_measurement=ELECTRIC_POTENTIAL_VOLT,
|
||||||
value=lambda value: round(value, 1),
|
value=lambda value: round(value, 2),
|
||||||
device_class=SensorDeviceClass.VOLTAGE,
|
device_class=SensorDeviceClass.VOLTAGE,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user