Prevent importing PLATFORM_SCHEMA/_BASE from config validation (#120571)
This commit is contained in:
parent
a5a631148e
commit
28e72753ad
1 changed files with 6 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue