String formatting cleanups (#52937)

This commit is contained in:
Ville Skyttä
2021-07-13 01:12:55 +03:00
committed by GitHub
parent 2970931d8d
commit 9864f2ef8b
22 changed files with 32 additions and 35 deletions

View File

@@ -34,7 +34,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
if token:
token = token.upper()
if not name:
name = "%s Balance" % token
name = f"{token} Balance"
if not name:
name = "ETH Balance"