mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Deprecate SUPPORT_* constants in media_player (#69518)
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user