Fix registered entities without a category not being exclude-able in the HomeKit UI (#69543)

This commit is contained in:
J. Nick Koston 2022-04-07 01:46:41 -10:00 committed by GitHub
parent a5dc95e715
commit 47c3aef7a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 3 deletions

View file

@ -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)
)
)