Drop use of deprecated ENTITY_CATEGORIES (#64607)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
6ed60d2b32
commit
3a09090a4b
7 changed files with 12 additions and 14 deletions
|
@ -35,7 +35,6 @@ from homeassistant.const import (
|
|||
CONF_IP_ADDRESS,
|
||||
CONF_NAME,
|
||||
CONF_PORT,
|
||||
ENTITY_CATEGORIES,
|
||||
EVENT_HOMEASSISTANT_STARTED,
|
||||
EVENT_HOMEASSISTANT_STOP,
|
||||
SERVICE_RELOAD,
|
||||
|
@ -667,7 +666,7 @@ class HomeKit:
|
|||
|
||||
if ent_reg_ent := ent_reg.async_get(entity_id):
|
||||
if (
|
||||
ent_reg_ent.entity_category in ENTITY_CATEGORIES
|
||||
ent_reg_ent.entity_category is not None
|
||||
and not self._filter.explicitly_included(entity_id)
|
||||
):
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue