Deprecate SUPPORT_* constants in cover (#69484)

This commit is contained in:
epenet 2022-04-07 23:27:55 +02:00 committed by GitHub
parent 5b6cb6bffd
commit 7635cafd47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,10 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
reason="replaced by CoverDeviceClass enum",
constant=re.compile(r"^DEVICE_CLASS_(\w*)$"),
),
ObsoleteImportMatch(
reason="replaced by CoverEntityFeature enum",
constant=re.compile(r"^SUPPORT_(\w*)$"),
),
],
"homeassistant.components.fan": [
ObsoleteImportMatch(