diff --git a/pylint/plugins/hass_imports.py b/pylint/plugins/hass_imports.py index 9c59b4cc010..94c3b5b1ee7 100644 --- a/pylint/plugins/hass_imports.py +++ b/pylint/plugins/hass_imports.py @@ -80,6 +80,16 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = { reason="replaced by MediaPlayerDeviceClass enum", constant=re.compile(r"^DEVICE_CLASS_(\w*)$"), ), + ObsoleteImportMatch( + reason="replaced by MediaPlayerEntityFeature enum", + constant=re.compile(r"^SUPPORT_(\w*)$"), + ), + ], + "homeassistant.components.media_player.const": [ + ObsoleteImportMatch( + reason="replaced by MediaPlayerEntityFeature enum", + constant=re.compile(r"^SUPPORT_(\w*)$"), + ), ], "homeassistant.components.remote": [ ObsoleteImportMatch(