Skip to content
Snippets Groups Projects
Unverified Commit 28e72753 authored by epenet's avatar epenet Committed by GitHub
Browse files

Prevent importing PLATFORM_SCHEMA/_BASE from config validation (#120571)

parent a5a63114
No related branches found
No related tags found
No related merge requests found
......@@ -360,6 +360,12 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
constant=re.compile(r"^RESULT_TYPE_(\w*)$"),
),
],
"homeassistant.helpers.config_validation": [
ObsoleteImportMatch(
reason="should be imported from homeassistant/components/<platform>",
constant=re.compile(r"^PLATFORM_SCHEMA(_BASE)?$"),
),
],
"homeassistant.helpers.device_registry": [
ObsoleteImportMatch(
reason="replaced by DeviceEntryDisabler enum",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment