Fix reload service in Command Line (#94085)

Fix multi platform reload service in command line
pull/94158/head
G Johansson 2023-06-05 21:54:51 +02:00 committed by Paulus Schoutsen
parent 28e0f5e104
commit ee8f63b9c9
1 changed files with 2 additions and 1 deletions

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,