Improve string formatting v4 (#33668)
* Improve string formatting v4 * Use normal strings instead of f-strings * Fix zeroconf test by adding back part of a condition
This commit is contained in:
parent
b855177fe6
commit
e3bcfb88e7
20 changed files with 43 additions and 47 deletions
|
@ -774,9 +774,9 @@ async def async_binding_operation(zha_gateway, source_ieee, target_ieee, operati
|
|||
res = await asyncio.gather(*(t[0] for t in bind_tasks), return_exceptions=True)
|
||||
for outcome, log_msg in zip(res, bind_tasks):
|
||||
if isinstance(outcome, Exception):
|
||||
fmt = log_msg[1] + " failed: %s"
|
||||
fmt = f"{log_msg[1]} failed: %s"
|
||||
else:
|
||||
fmt = log_msg[1] + " completed: %s"
|
||||
fmt = f"{log_msg[1]} completed: %s"
|
||||
zdo.debug(fmt, *(log_msg[2] + (outcome,)))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue