2.0 KiB
author | authorURL | title |
---|---|---|
J. Nick Koston | https://github.com/bdraco | Deprecating all magic numbers for supported features |
As of Home Assistant Core 2024.1, all usage of magic numbers for supported features is deprecated,
and each entity platform has provided an EntityFeature
enum to replace them.
There will be a one-year deprecation period, and the magic numbers will stop working in 2025.1 to ensure all custom integration authors have time to adjust.
This applies to, the following platforms:
-
Alarm Control Panel
Use the new
AlarmControlPanelEntityFeature
enum instead. -
Camera
Use the new
CameraEntityFeature
enum instead. -
Cover
Use the new
CoverEntityFeature
enum instead. -
Climate
Use the new
ClimateEntityFeature
enum instead. -
Humidifier
Use the new
HumidifierEntityFeature
enum instead. -
Fan
Use the new
FanEntityFeature
enum instead. -
Light
Use the new
LightEntityFeature
enum instead. -
Lock
Use the new
LockEntityFeature
enum instead. -
Media Player
Use the new
MediaPlayerEntityFeature
enum instead. -
Remote
Use the new
RemoteEntityFeature
enum instead. -
Siren
Use the new
SirenEntityFeature
enum instead. -
Vacuum
Use the new
VacuumEntityFeature
enum instead. -
Water Heater
Use the new
WaterHeaterEntityFeature
enum instead.