mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 11:18:00 +02:00
Prevent importing PLATFORM_SCHEMA/_BASE from config validation (#120571)
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user