Add unit inference for Amps and VA in APCUPSD integration (#94431)
* Add unit inference for Amps and VA * Rename `init_integration` to `async_init_integration` for better consistency with HA naming style
This commit is contained in:
parent
47995fc274
commit
b1bdd92383
5 changed files with 18 additions and 14 deletions
|
@ -430,7 +430,9 @@ INFERRED_UNITS = {
|
|||
" Percent": PERCENTAGE,
|
||||
" Volts": UnitOfElectricPotential.VOLT,
|
||||
" Ampere": UnitOfElectricCurrent.AMPERE,
|
||||
" Amps": UnitOfElectricCurrent.AMPERE,
|
||||
" Volt-Ampere": UnitOfApparentPower.VOLT_AMPERE,
|
||||
" VA": UnitOfApparentPower.VOLT_AMPERE,
|
||||
" Watts": UnitOfPower.WATT,
|
||||
" Hz": UnitOfFrequency.HERTZ,
|
||||
" C": UnitOfTemperature.CELSIUS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue