mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +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
|
||||
ATTR_PERSONS: Final = "persons"
|
||||
|
||||
|
||||
# #### UNITS OF MEASUREMENT ####
|
||||
# Apparent power units
|
||||
class UnitOfApparentPower(StrEnum):
|
||||
"""Apparent power units."""
|
||||
|
||||
VOLT_AMPERE = "VA"
|
||||
|
||||
|
||||
POWER_VOLT_AMPERE: Final = "VA"
|
||||
"""Deprecated: please use UnitOfApparentPower.VOLT_AMPERE."""
|
||||
|
||||
|
||||
# Power units
|
||||
|
Loading…
x
Reference in New Issue
Block a user