Fix reload service in Command Line (#94085)
Fix multi platform reload service in command linepull/94158/head
parent
28e0f5e104
commit
ee8f63b9c9
|
@ -173,7 +173,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||||
platforms: list[Platform] = []
|
platforms: list[Platform] = []
|
||||||
for platform_config in command_line_config:
|
for platform_config in command_line_config:
|
||||||
for platform, _config in platform_config.items():
|
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(
|
_LOGGER.debug(
|
||||||
"Loading config %s for platform %s",
|
"Loading config %s for platform %s",
|
||||||
platform_config,
|
platform_config,
|
||||||
|
|
Loading…
Reference in New Issue