784 B
784 B
author | authorURL | title |
---|---|---|
mikey0000 | https://github.com/mikey0000 | 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 and Sensor documentation