1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-28 12:43:44 +01:00

Use more f-strings [ruff] (#112695)

This commit is contained in:
Marc Mueller
2024-03-08 18:44:42 +01:00
committed by GitHub
parent f416d67d21
commit cb8c14496c
14 changed files with 38 additions and 34 deletions

View File

@@ -479,6 +479,7 @@ async def test_if_fires_on_state_change_legacy(
hass.states.async_set(entry.entity_id, STATE_OFF)
await hass.async_block_till_done()
assert len(calls) == 1
assert calls[0].data["some"] == "turn_off device - {} - on - off - None".format(
entry.entity_id
assert (
calls[0].data["some"]
== f"turn_off device - {entry.entity_id} - on - off - None"
)