Exclude hidden entities from homekit (#68552)

This commit is contained in:
Erik Montnemery 2022-03-23 10:32:51 +01:00 committed by GitHub
parent 49bc572d6d
commit 1c57e65cea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 144 additions and 8 deletions

View file

@ -667,8 +667,8 @@ class HomeKit:
if ent_reg_ent := ent_reg.async_get(entity_id):
if (
ent_reg_ent.entity_category is not None
and not self._filter.explicitly_included(entity_id)
):
or ent_reg_ent.hidden_by is not None
) and not self._filter.explicitly_included(entity_id):
continue
await self._async_set_device_info_attributes(