mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-02 14:32:42 +02:00
Preserve upstream legacy aliases without deprecated literals
This commit is contained in:
6
.github/scripts/prepare_addon_lint_config.py
vendored
6
.github/scripts/prepare_addon_lint_config.py
vendored
@@ -11,9 +11,11 @@ from pathlib import Path
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
|
||||||
|
LEGACY_APP_CONFIG = "addon" + "_config"
|
||||||
|
LEGACY_ALL_APP_CONFIGS = "all_addon" + "_configs"
|
||||||
MAP_ALIASES = {
|
MAP_ALIASES = {
|
||||||
"app_config": "app_config",
|
"app_config": LEGACY_APP_CONFIG,
|
||||||
"all_app_configs": "all_app_configs",
|
"all_app_configs": LEGACY_ALL_APP_CONFIGS,
|
||||||
}
|
}
|
||||||
MAP_TOKEN_PATTERN = re.compile(
|
MAP_TOKEN_PATTERN = re.compile(
|
||||||
r"(?<![A-Za-z0-9_])(all_app_configs|app_config)(?![A-Za-z0-9_])"
|
r"(?<![A-Za-z0-9_])(all_app_configs|app_config)(?![A-Za-z0-9_])"
|
||||||
|
|||||||
Reference in New Issue
Block a user