Bump pyupgrade to 2.12.0 (#48943)
This commit is contained in:
parent
ee0c87df1c
commit
8e2b5b36b5
45 changed files with 94 additions and 95 deletions
|
@ -34,7 +34,7 @@ def test_get_states(hass_history):
|
|||
with patch("homeassistant.components.recorder.dt_util.utcnow", return_value=now):
|
||||
for i in range(5):
|
||||
state = ha.State(
|
||||
"test.point_in_time_{}".format(i % 5),
|
||||
f"test.point_in_time_{i % 5}",
|
||||
f"State {i}",
|
||||
{"attribute_test": i},
|
||||
)
|
||||
|
@ -49,7 +49,7 @@ def test_get_states(hass_history):
|
|||
with patch("homeassistant.components.recorder.dt_util.utcnow", return_value=future):
|
||||
for i in range(5):
|
||||
state = ha.State(
|
||||
"test.point_in_time_{}".format(i % 5),
|
||||
f"test.point_in_time_{i % 5}",
|
||||
f"State {i}",
|
||||
{"attribute_test": i},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue