mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix reload service in Command Line (#94085)
Fix multi platform reload service in command line
This commit is contained in:
parent
e30e423091
commit
228da71cc4
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user