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
AlarmControlPanelEntityFeatureenum instead. -
Camera
Use the new
CameraEntityFeatureenum instead. -
Cover
Use the new
CoverEntityFeatureenum instead. -
Climate
Use the new
ClimateEntityFeatureenum instead. -
Humidifier
Use the new
HumidifierEntityFeatureenum instead. -
Fan
Use the new
FanEntityFeatureenum instead. -
Light
Use the new
LightEntityFeatureenum instead. -
Lock
Use the new
LockEntityFeatureenum instead. -
Media Player
Use the new
MediaPlayerEntityFeatureenum instead. -
Remote
Use the new
RemoteEntityFeatureenum instead. -
Siren
Use the new
SirenEntityFeatureenum instead. -
Vacuum
Use the new
VacuumEntityFeatureenum instead. -
Water Heater
Use the new
WaterHeaterEntityFeatureenum instead.