mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
String formatting improvements for tests (#33663)
This commit is contained in:
@@ -548,7 +548,7 @@ async def test_async_added_to_hass(hass):
|
||||
|
||||
for key, val in attr.items():
|
||||
atr = state.attributes.get(key)
|
||||
assert atr == val, "{}={} expected: {}".format(key, atr, val)
|
||||
assert atr == val, f"{key}={atr} expected: {val}"
|
||||
|
||||
|
||||
async def test_bad_platform(hass):
|
||||
|
||||
Reference in New Issue
Block a user