mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Improve config entry has already been setup error message (#117091)
This commit is contained in:
@@ -182,7 +182,10 @@ class EntityComponent(Generic[_EntityT]):
|
||||
key = config_entry.entry_id
|
||||
|
||||
if key in self._platforms:
|
||||
raise ValueError("Config entry has already been setup!")
|
||||
raise ValueError(
|
||||
f"Config entry {config_entry.title} ({key}) for "
|
||||
f"{platform_type}.{self.domain} has already been setup!"
|
||||
)
|
||||
|
||||
self._platforms[key] = self._async_init_entity_platform(
|
||||
platform_type,
|
||||
|
||||
Reference in New Issue
Block a user