mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +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*)$"),
|
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": [
|
"homeassistant.helpers.device_registry": [
|
||||||
ObsoleteImportMatch(
|
ObsoleteImportMatch(
|
||||||
reason="replaced by DeviceEntryDisabler enum",
|
reason="replaced by DeviceEntryDisabler enum",
|
||||||
|
Reference in New Issue
Block a user