Deprecate SUPPORT_* constants in remote (#69515)

This commit is contained in:
epenet 2022-04-07 09:42:36 +02:00 committed by GitHub
parent d33fbbfb6d
commit d614ccd161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,12 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
constant=re.compile(r"^DEVICE_CLASS_(\w*)$"),
),
],
"homeassistant.components.remote": [
ObsoleteImportMatch(
reason="replaced by RemoteEntityFeature enum",
constant=re.compile(r"^SUPPORT_(\w*)$"),
),
],
"homeassistant.components.sensor": [
ObsoleteImportMatch(
reason="replaced by SensorDeviceClass enum",