Deprecate SUPPORT_* constants in media_player (#69518)

This commit is contained in:
epenet 2022-04-07 23:26:09 +02:00 committed by GitHub
parent 6feeece574
commit 5b6cb6bffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(