mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Introduce unit enums for apparent power (#83451)
This commit is contained in:
parent
9987f7a125
commit
0eacd84ff3
@ -477,9 +477,17 @@ ATTR_TEMPERATURE: Final = "temperature"
|
|||||||
# Persons attribute
|
# Persons attribute
|
||||||
ATTR_PERSONS: Final = "persons"
|
ATTR_PERSONS: Final = "persons"
|
||||||
|
|
||||||
|
|
||||||
# #### UNITS OF MEASUREMENT ####
|
# #### UNITS OF MEASUREMENT ####
|
||||||
# Apparent power units
|
# Apparent power units
|
||||||
|
class UnitOfApparentPower(StrEnum):
|
||||||
|
"""Apparent power units."""
|
||||||
|
|
||||||
|
VOLT_AMPERE = "VA"
|
||||||
|
|
||||||
|
|
||||||
POWER_VOLT_AMPERE: Final = "VA"
|
POWER_VOLT_AMPERE: Final = "VA"
|
||||||
|
"""Deprecated: please use UnitOfApparentPower.VOLT_AMPERE."""
|
||||||
|
|
||||||
|
|
||||||
# Power units
|
# Power units
|
||||||
|
Loading…
x
Reference in New Issue
Block a user