Add ruff rule PIE804 (#113620)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Sid 2024-03-16 23:45:18 +01:00 committed by GitHub
parent d0352ed91d
commit fe9cc6705c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 64 additions and 91 deletions

View file

@ -57,7 +57,7 @@ async def test_switches(
setup_owproxy_mock_devices(owproxy, Platform.SWITCH, [device_id])
# Some entities are disabled, enable them and reload before checking states
for ent in entity_entries:
entity_registry.async_update_entity(ent.entity_id, **{"disabled_by": None})
entity_registry.async_update_entity(ent.entity_id, disabled_by=None)
await hass.config_entries.async_reload(config_entry.entry_id)
await hass.async_block_till_done()