Skip to content

Commit

Permalink
add blog and update number and sensor entity docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikey0000 committed Nov 12, 2024
1 parent 36e2ff5 commit 72f08a3
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 51 deletions.
16 changes: 16 additions & 0 deletions blog/2024-12-04-area-squared-units.md
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)
```
Loading

0 comments on commit 72f08a3

Please sign in to comment.