-
-
Notifications
You must be signed in to change notification settings - Fork 995
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 (#2448)
* add blog and update number and sensor entity docs * Update docs/core/entity/sensor.md Co-authored-by: epenet <[email protected]> * Update blog/2024-12-04-area-squared-units.md Co-authored-by: epenet <[email protected]> * remove space * add number and sensor changes to the blog * Update blog/2024-12-04-area-squared-units.md Co-authored-by: epenet <[email protected]> * Update blog/2024-12-04-area-squared-units.md Co-authored-by: epenet <[email protected]> * Update blog/2024-12-04-area-squared-units.md Co-authored-by: epenet <[email protected]> * remove example * Update blog/2024-12-04-area-squared-units.md Co-authored-by: epenet <[email protected]> * Update blog/2024-12-04-area-squared-units.md Co-authored-by: epenet <[email protected]> * Rename 2024-12-04-area-squared-units.md to 2024-12-26-area-squared-units.md --------- Co-authored-by: epenet <[email protected]>
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
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,15 @@ | ||
--- | ||
author: mikey0000 | ||
authorURL: https://github.com/mikey0000 | ||
title: "New area device class" | ||
--- | ||
|
||
### Summary of changes | ||
A new `AREA` device class is now available for number and sensor entities, together with automatic unit conversion based on the unit system. | ||
A corresponding `UnitOfArea` unit enumerator, and `AreaConverter` converter class have been added to support the new device class. | ||
|
||
### Backward compatibility | ||
The `AREA_SQUARE_METERS` constant has been deprecated and will be removed in Home Assistant `2025.12`. | ||
Custom integrations should be adjusted to use `UnitOfArea.SQUARE_METERS`. | ||
|
||
More details can be found in the [Number documentation](/docs/core/entity/number#available-device-classes) and [Sensor documentation](/docs/core/entity/sensor#available-device-classes) |
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
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