mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 20:02:22 +01:00
Don't generate IDs with the name of loaded integrations (#2373)
This commit is contained in:
@@ -312,7 +312,7 @@ class ID:
|
||||
if self.id is None:
|
||||
base = str(self.type).replace("::", "_").lower()
|
||||
name = "".join(c for c in base if c.isalnum() or c == "_")
|
||||
used = set(registered_ids) | set(RESERVED_IDS)
|
||||
used = set(registered_ids) | set(RESERVED_IDS) | CORE.loaded_integrations
|
||||
self.id = ensure_unique_string(name, used)
|
||||
return self.id
|
||||
|
||||
|
Reference in New Issue
Block a user