Add missing entry for SOURCE_TYPE_* to hass-imports plugin (#76829)

This commit is contained in:
Marc Mueller 2022-08-16 11:17:10 +02:00 committed by GitHub
parent 91005f4694
commit 93630cf1f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,6 +108,18 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
constant=re.compile(r"^SUPPORT_(\w*)$"),
),
],
"homeassistant.components.device_tracker": [
ObsoleteImportMatch(
reason="replaced by SourceType enum",
constant=re.compile(r"^SOURCE_TYPE_\w+$")
),
],
"homeassistant.components.device_tracker.const": [
ObsoleteImportMatch(
reason="replaced by SourceType enum",
constant=re.compile(r"^SOURCE_TYPE_\w+$")
),
],
"homeassistant.components.fan": [
ObsoleteImportMatch(
reason="replaced by FanEntityFeature enum",