-
-
Notifications
You must be signed in to change notification settings - Fork 965
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add blog and update number and sensor entity docs
- Loading branch information
Showing
3 changed files
with
69 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
author: epenet | ||
authorURL: https://github.com/epenet | ||
title: "Area squared unit enumerators" | ||
--- | ||
|
||
As of Home Assistant Core 2024.12, the following unit constant is deprecated and replaced | ||
by a corresponding enum: | ||
|
||
- `UnitOfArea` enumerator replaces `AREA_SQUARE_METERS` constant | ||
|
||
Area units can also be converted between us customary and metric units using `AreaConverter` | ||
|
||
```python | ||
AreaConverter.convert(10, UnitOfArea.SQUARE_KILOMETERS, UnitOfArea.SQUARE_MILES) | ||
``` |
Oops, something went wrong.