Use literal string interpolation in core (f-strings) (#26166)
This commit is contained in:
1 parent
1efa29d6ff
commit
decf13b948
67 files changed
+180
-246
No files matched your search
@@ -209,7 +209,7 @@ class ScriptEntity(ToggleEntity):
|
||||
await self.script.async_run(kwargs.get(ATTR_VARIABLES), context)
|
||||
except Exception as err: # pylint: disable=broad-except
|
||||
self.script.async_log_exception(
|
||||
_LOGGER, "Error executing script {}".format(self.entity_id), err
|
||||
_LOGGER, f"Error executing script {self.entity_id}", err
|
||||
)
|
||||
raise err
|
||||
|
||||
|
||||
Reference in new issue
Block a user