Fix registered entities without a category not being exclude-able in the HomeKit UI (#69543)
This commit is contained in:
parent
a5dc95e715
commit
47c3aef7a2
2 changed files with 23 additions and 3 deletions
|
@ -652,7 +652,7 @@ def _exclude_by_entity_registry(
|
|||
(entry := ent_reg.async_get(entity_id))
|
||||
and (
|
||||
entry.hidden_by is not None
|
||||
or (not include_entity_category or entry.entity_category is not None)
|
||||
or (not include_entity_category and entry.entity_category is not None)
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue