Deprecate SUPPORT_* constants in fan (#69514)

This commit is contained in:
epenet 2022-04-07 23:23:29 +02:00 committed by GitHub
parent 6dc72ebf6c
commit 15348965f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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