Deprecate SUPPORT_* constants in camera (#69481)

pull/69648/head^2
epenet 2022-04-08 10:22:42 +02:00 committed by GitHub
parent 4298f83b93
commit f0a021d255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

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