mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Prevent use of deprecated media-player constants (#77937)
This commit is contained in:
parent
1dff0075b0
commit
bad81c1bc9
@ -175,12 +175,36 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
|||||||
reason="replaced by MediaPlayerEntityFeature enum",
|
reason="replaced by MediaPlayerEntityFeature enum",
|
||||||
constant=re.compile(r"^SUPPORT_(\w*)$"),
|
constant=re.compile(r"^SUPPORT_(\w*)$"),
|
||||||
),
|
),
|
||||||
|
ObsoleteImportMatch(
|
||||||
|
reason="replaced by MediaClass enum",
|
||||||
|
constant=re.compile(r"^MEDIA_CLASS_(\w*)$"),
|
||||||
|
),
|
||||||
|
ObsoleteImportMatch(
|
||||||
|
reason="replaced by MediaType enum",
|
||||||
|
constant=re.compile(r"^MEDIA_TYPE_(\w*)$"),
|
||||||
|
),
|
||||||
|
ObsoleteImportMatch(
|
||||||
|
reason="replaced by RepeatMode enum",
|
||||||
|
constant=re.compile(r"^REPEAT_MODE(\w*)$"),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
"homeassistant.components.media_player.const": [
|
"homeassistant.components.media_player.const": [
|
||||||
ObsoleteImportMatch(
|
ObsoleteImportMatch(
|
||||||
reason="replaced by MediaPlayerEntityFeature enum",
|
reason="replaced by MediaPlayerEntityFeature enum",
|
||||||
constant=re.compile(r"^SUPPORT_(\w*)$"),
|
constant=re.compile(r"^SUPPORT_(\w*)$"),
|
||||||
),
|
),
|
||||||
|
ObsoleteImportMatch(
|
||||||
|
reason="replaced by MediaClass enum",
|
||||||
|
constant=re.compile(r"^MEDIA_CLASS_(\w*)$"),
|
||||||
|
),
|
||||||
|
ObsoleteImportMatch(
|
||||||
|
reason="replaced by MediaType enum",
|
||||||
|
constant=re.compile(r"^MEDIA_TYPE_(\w*)$"),
|
||||||
|
),
|
||||||
|
ObsoleteImportMatch(
|
||||||
|
reason="replaced by RepeatMode enum",
|
||||||
|
constant=re.compile(r"^REPEAT_MODE(\w*)$"),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
"homeassistant.components.remote": [
|
"homeassistant.components.remote": [
|
||||||
ObsoleteImportMatch(
|
ObsoleteImportMatch(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user