Exclude hidden entities from homekit (#68552)
This commit is contained in:
parent
49bc572d6d
commit
1c57e65cea
4 changed files with 144 additions and 8 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue