1
0
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:
Franck Nijhof
2019-08-23 18:53:33 +02:00
committed by Paulus Schoutsen
parent 1efa29d6ff
commit decf13b948
67 changed files with 180 additions and 246 deletions

View File

@@ -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 (