Use UnitOfElectricPotential in integrations (#84044)

This commit is contained in:
epenet 2022-12-15 13:59:21 +01:00 committed by GitHub
parent d72c28a135
commit 0184aadb09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
43 changed files with 141 additions and 143 deletions

View file

@ -20,7 +20,6 @@ from homeassistant.const import (
CONCENTRATION_PARTS_PER_BILLION,
CONCENTRATION_PARTS_PER_MILLION,
ELECTRIC_CURRENT_AMPERE,
ELECTRIC_POTENTIAL_VOLT,
ENERGY_KILO_WATT_HOUR,
LIGHT_LUX,
PERCENTAGE,
@ -34,6 +33,7 @@ from homeassistant.const import (
TEMP_FAHRENHEIT,
TEMP_KELVIN,
UnitOfApparentPower,
UnitOfElectricPotential,
UnitOfFrequency,
UnitOfLength,
UnitOfMass,
@ -231,7 +231,7 @@ SENSOR_UNIT_MAP = {
hc.TEMP_CELSIUS: TEMP_CELSIUS,
hc.TEMP_FAHRENHEIT: TEMP_FAHRENHEIT,
hc.TEMP_KELVIN: TEMP_KELVIN,
hc.VOLT: ELECTRIC_POTENTIAL_VOLT,
hc.VOLT: UnitOfElectricPotential.VOLT,
}