From 5b6cb6bffde61d04c1a528c79109fb5d5a1243bc Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 7 Apr 2022 23:26:09 +0200 Subject: [PATCH] Deprecate SUPPORT_* constants in media_player (#69518) --- pylint/plugins/hass_imports.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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(