Skip to content

Commit 4cafd39

Browse files
authored
Correct units on mopeka battery voltage sensor (home-assistant#86663)
1 parent e50a531 commit 4cafd39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

homeassistant/components/mopeka/sensor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from homeassistant.const import (
2020
PERCENTAGE,
2121
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
22+
UnitOfElectricPotential,
2223
UnitOfLength,
2324
UnitOfTemperature,
2425
)
@@ -41,7 +42,7 @@
4142
"battery_voltage": SensorEntityDescription(
4243
key="battery_voltage",
4344
device_class=SensorDeviceClass.VOLTAGE,
44-
native_unit_of_measurement=PERCENTAGE,
45+
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
4546
state_class=SensorStateClass.MEASUREMENT,
4647
entity_category=EntityCategory.DIAGNOSTIC,
4748
entity_registry_enabled_default=False,

0 commit comments

Comments
 (0)