Deprecate SUPPORT_* constants in climate (#69482)

pull/69864/head
epenet 2022-04-07 23:25:14 +02:00 committed by GitHub
parent f4fb29200c
commit 6feeece574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -25,6 +25,18 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
constant=re.compile(r"^DEVICE_CLASS_(\w*)$"),
),
],
"homeassistant.components.climate": [
ObsoleteImportMatch(
reason="replaced by ClimateEntityFeature enum",
constant=re.compile(r"^SUPPORT_(\w*)$"),
),
],
"homeassistant.components.climate.const": [
ObsoleteImportMatch(
reason="replaced by ClimateEntityFeature enum",
constant=re.compile(r"^SUPPORT_(\w*)$"),
),
],
"homeassistant.components.cover": [
ObsoleteImportMatch(
reason="replaced by CoverDeviceClass enum",