mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Support shared keys starting with period in services.yaml (#118789)
This commit is contained in:
@@ -1432,7 +1432,10 @@ def mock_config_flow(domain: str, config_flow: type[ConfigFlow]) -> None:
|
||||
|
||||
|
||||
def mock_integration(
|
||||
hass: HomeAssistant, module: MockModule, built_in: bool = True
|
||||
hass: HomeAssistant,
|
||||
module: MockModule,
|
||||
built_in: bool = True,
|
||||
top_level_files: set[str] | None = None,
|
||||
) -> loader.Integration:
|
||||
"""Mock an integration."""
|
||||
integration = loader.Integration(
|
||||
@@ -1442,7 +1445,7 @@ def mock_integration(
|
||||
else f"{loader.PACKAGE_CUSTOM_COMPONENTS}.{module.DOMAIN}",
|
||||
pathlib.Path(""),
|
||||
module.mock_manifest(),
|
||||
set(),
|
||||
top_level_files,
|
||||
)
|
||||
|
||||
def mock_import_platform(platform_name: str) -> NoReturn:
|
||||
|
||||
Reference in New Issue
Block a user