Correct units on mopeka battery voltage sensor (#86663)
This commit is contained in:
parent
e50a531cd9
commit
4cafd393c6
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ from homeassistant.components.sensor import (
|
|||
from homeassistant.const import (
|
||||
PERCENTAGE,
|
||||
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
|
||||
UnitOfElectricPotential,
|
||||
UnitOfLength,
|
||||
UnitOfTemperature,
|
||||
)
|
||||
|
@ -41,7 +42,7 @@ SENSOR_DESCRIPTIONS = {
|
|||
"battery_voltage": SensorEntityDescription(
|
||||
key="battery_voltage",
|
||||
device_class=SensorDeviceClass.VOLTAGE,
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
entity_registry_enabled_default=False,
|
||||
|
|
Loading…
Add table
Reference in a new issue