Deprecate SUPPORT_* constants in humidifier (#69519)

This commit is contained in:
epenet 2022-04-07 15:36:16 +02:00 committed by GitHub
parent 381e669b64
commit 075c362fd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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