mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-14 04:46:29 +00:00
Introducing new unit enumerators (#1511)
This commit is contained in:
parent
dafeb49013
commit
1028bf566a
17
blog/2022-10-26-new-unit-enumerators.md
Normal file
17
blog/2022-10-26-new-unit-enumerators.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
author: epenet
|
||||||
|
authorURL: https://github.com/epenet
|
||||||
|
title: "Introducing new unit enumerators"
|
||||||
|
---
|
||||||
|
|
||||||
|
As of Home Assistant Core 2022.11, the following unit constants are deprecated and replaced
|
||||||
|
by a corresponding enum:
|
||||||
|
|
||||||
|
- `UnitOfEnergy` enumerator replaces `ENERGY_***` constants
|
||||||
|
- `UnitOfLength` enumerator replaces `LENGTH_***` constants
|
||||||
|
- `UnitOfMass` enumerator replaces `MASS_***` constants
|
||||||
|
- `UnitOfPower` enumerator replaces `POWER_***` constants
|
||||||
|
- `UnitOfPressure` enumerator replaces `PRESSURE_***` constants
|
||||||
|
- `UnitOfSpeed` enumerator replaces `SPEED_***` constants
|
||||||
|
- `UnitOfTemperature` enumerator replaces `TEMP_***` constants
|
||||||
|
- `UnitOfVolume` enumerator replaces `VOLUME_***` constants
|
Loading…
x
Reference in New Issue
Block a user