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

@ -232,7 +232,7 @@ async def test_config_parameter_number(
assert entity_entry.entity_category == EntityCategory.CONFIG
for entity_id in (number_entity_id, number_with_states_entity_id):
updated_entry = ent_reg.async_update_entity(entity_id, **{"disabled_by": None})
updated_entry = ent_reg.async_update_entity(entity_id, disabled_by=None)
assert updated_entry != entity_entry
assert updated_entry.disabled is False