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:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user