Drop use of deprecated ENTITY_CATEGORIES (#64607)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-24 13:36:42 +01:00 committed by GitHub
parent 6ed60d2b32
commit 3a09090a4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 14 deletions

View file

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