Deprecate SUPPORT_* constants in media_player (#69518)
This commit is contained in:
parent
6feeece574
commit
5b6cb6bffd
1 changed files with 10 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue