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
|
@ -39,6 +39,6 @@ SIGNAL_WEBSOCKET_CONNECTED = "websocket_connected"
|
|||
SIGNAL_WEBSOCKET_DISCONNECTED = "websocket_disconnected"
|
||||
|
||||
# Data used to store the current connection list
|
||||
DATA_CONNECTIONS = DOMAIN + ".connections"
|
||||
DATA_CONNECTIONS = f"{DOMAIN}.connections"
|
||||
|
||||
JSON_DUMP = partial(json.dumps, cls=JSONEncoder, allow_nan=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue