From 73a1ceebf1b46a26cc0c62c5d49ecdedfcb04491 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 6 Nov 2026 15:38:46 +0100 Subject: [PATCH] Use EntityStateAttribute in knx (#190921) --- homeassistant/components/knx/entity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/knx/entity.py b/homeassistant/components/knx/entity.py index bb716286c6af..c5d9b5603c7d 100644 --- a/homeassistant/components/knx/entity.py +++ b/homeassistant/components/knx/entity.py @@ -8,12 +8,12 @@ from xknx.devices import Device as XknxDevice from xknx.telegram.address import DeviceGroupAddress, GroupAddress from homeassistant.const import ( - ATTR_ASSUMED_STATE, CONF_DEVICE, CONF_ENTITY_CATEGORY, CONF_ID, CONF_NAME, CONF_UNIQUE_ID, + EntityStateAttribute, ) from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import entity_registry as er @@ -123,7 +123,7 @@ class _KnxEntityBase(Entity): # `assumed_state` toggles when a restored state is confirmed by the bus, # which would otherwise write a new attributes row for every entity on startup - _unrecorded_attributes = frozenset({ATTR_ASSUMED_STATE}) + _unrecorded_attributes = frozenset({EntityStateAttribute.ASSUMED_STATE}) _attr_has_entity_name = True _attr_should_poll = False