Use UnitOfElectricPotential Enum
@@ -17,11 +17,11 @@ from homeassistant.const import (
CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER,
CONDUCTIVITY,
- ELECTRIC_POTENTIAL_VOLT,
LIGHT_LUX,
PERCENTAGE,
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
Platform,
+ UnitOfElectricPotential,
UnitOfEnergy,
UnitOfMass,
UnitOfPower,
@@ -614,7 +614,7 @@ SENSOR_TYPES: tuple[BLEMonitorSensorEntityDescription, ...] = (
update_behavior="Averaging",
name="ble voltage",
unique_id="v_",
- native_unit_of_measurement=ELECTRIC_POTENTIAL_VOLT,
+ native_unit_of_measurement=UnitOfElectricPotential.VOLT,
device_class=SensorDeviceClass.VOLTAGE,
state_class=SensorStateClass.MEASUREMENT,
entity_category=EntityCategory.DIAGNOSTIC,
