mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Use literal string interpolation in core (f-strings) (#26166)
This commit is contained in:
committed by
Paulus Schoutsen
parent
1efa29d6ff
commit
decf13b948
@@ -166,9 +166,7 @@ class EntityRegistry:
|
||||
)
|
||||
|
||||
entity_id = self.async_generate_entity_id(
|
||||
domain,
|
||||
suggested_object_id or "{}_{}".format(platform, unique_id),
|
||||
known_object_ids,
|
||||
domain, suggested_object_id or f"{platform}_{unique_id}", known_object_ids
|
||||
)
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user