Enable Ruff B007 (#88356)

* Enable Ruff B007

* Adjust existing cases
This commit is contained in:
Franck Nijhof 2023-02-18 03:08:18 +01:00 committed by GitHub
parent 9fd35d53e7
commit 1e05697080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 13 additions and 14 deletions

View file

@ -437,7 +437,7 @@ async def test_async_remove_with_platform_update_finishes(hass: HomeAssistant) -
# Add, remove, add, remove and make sure no updates
# cause the entity to reappear after removal
for i in range(2):
for _ in range(2):
await component.async_add_entities([entity1])
assert len(hass.states.async_entity_ids()) == 1
entity1.async_write_ha_state()