Use f-strings in integrations starting with "F"and"G" (#32150)
* Use f-strings in integrations starting with F * Use f-strings in tests for integrations starting with F * Use f-strings in integrations starting with G * Use f-strings in tests for integrations starting with G * Fix pylint error * Fix broken test
This commit is contained in:
1 parent
496bd3dddf
commit
ad102b3840
59 files changed
+219
-344
No files matched your search
@@ -119,14 +119,10 @@ async def test_if_fires_on_state_change(hass, calls):
|
||||
hass.states.async_set("fan.entity", STATE_ON)
|
||||
await hass.async_block_till_done()
|
||||
assert len(calls) == 1
|
||||
assert calls[0].data["some"] == "turn_on - device - {} - off - on - None".format(
|
||||
"fan.entity"
|
||||
)
|
||||
assert calls[0].data["some"] == "turn_on - device - fan.entity - off - on - None"
|
||||
|
||||
# Fake that the entity is turning off.
|
||||
hass.states.async_set("fan.entity", STATE_OFF)
|
||||
await hass.async_block_till_done()
|
||||
assert len(calls) == 2
|
||||
assert calls[1].data["some"] == "turn_off - device - {} - on - off - None".format(
|
||||
"fan.entity"
|
||||
)
|
||||
assert calls[1].data["some"] == "turn_off - device - fan.entity - on - off - None"
|
||||
Reference in new issue
Block a user