Deprecate SUPPORT_* constants in water-heater (#69512)

This commit is contained in:
epenet 2022-04-07 15:33:09 +02:00 committed by GitHub
parent 4a0e00d939
commit 381e669b64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,12 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
constant=re.compile(r"^DEVICE_CLASS_(\w*)$"),
),
],
"homeassistant.components.water_heater": [
ObsoleteImportMatch(
reason="replaced by WaterHeaterEntityFeature enum",
constant=re.compile(r"^SUPPORT_(\w*)$"),
),
],
"homeassistant.config_entries": [
ObsoleteImportMatch(
reason="replaced by ConfigEntryDisabler enum",