Bump ruff to 0.9.1 (#135197)

This commit is contained in:
Joost Lekkerkerker
2025-01-14 11:46:12 +01:00
committed by GitHub
parent 2b51ab1c75
commit 8db63adc11
49 changed files with 256 additions and 265 deletions

View File

@@ -1480,9 +1480,9 @@ class Entity(
if self.registry_entry is not None:
# This is an assert as it should never happen, but helps in tests
assert (
not self.registry_entry.disabled_by
), f"Entity '{self.entity_id}' is being added while it's disabled"
assert not self.registry_entry.disabled_by, (
f"Entity '{self.entity_id}' is being added while it's disabled"
)
self.async_on_remove(
async_track_entity_registry_updated_event(