Skip to content

Commit

Permalink
Fix reload service in Command Line (#94085)
Browse files Browse the repository at this point in the history
Fix multi platform reload service in command line
  • Loading branch information
gjohansson-ST authored and balloob committed Jun 5, 2023
1 parent 28e0f5e commit ee8f63b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/command_line/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ee8f63b

Please sign in to comment.