Improve string formatting v5 (#33697)
* Improve string formatting v5 * Address review comments
This commit is contained in:
parent
39336d3ea3
commit
fca90a8ddc
46 changed files with 221 additions and 252 deletions
|
@ -57,8 +57,8 @@ class AuthPhase:
|
|||
try:
|
||||
msg = AUTH_MESSAGE_SCHEMA(msg)
|
||||
except vol.Invalid as err:
|
||||
error_msg = "Auth message incorrectly formatted: {}".format(
|
||||
humanize_error(msg, err)
|
||||
error_msg = (
|
||||
f"Auth message incorrectly formatted: {humanize_error(msg, err)}"
|
||||
)
|
||||
self._logger.warning(error_msg)
|
||||
self._send_message(auth_invalid_message(error_msg))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue