mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 05:20:17 +00:00
Bump ruff to 0.9.1 (#135197)
This commit is contained in:
committed by
GitHub
parent
2b51ab1c75
commit
8db63adc11
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user