1
0
mirror of https://github.com/elisspace/core.git synced 2026-08-29 15:43:55 +00:00

Fix reload service in Command Line (#94085)

Fix multi platform reload service in command line
This commit is contained in:
G Johansson
2023-06-05 21:54:51 +02:00
committed by Paulus Schoutsen
parent 28e0f5e104
commit ee8f63b9c9

View File

@@ -173,7 +173,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
platforms: list[Platform] = []
for platform_config in command_line_config:
for platform, _config in platform_config.items():
platforms.append(PLATFORM_MAPPING[platform])
if (mapped_platform := PLATFORM_MAPPING[platform]) not in platforms:
platforms.append(mapped_platform)
_LOGGER.debug(
"Loading config %s for platform %s",
platform_config,