mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
String formatting cleanups (#52937)
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user