From c1aff88ef3a339339458a7bae4931ecac733c8df Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 6 Nov 2026 20:36:01 +0100 Subject: [PATCH] Use EntityStateAttribute in the conversation gazetteer (#190919) --- homeassistant/components/conversation/gazetteer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/conversation/gazetteer.py b/homeassistant/components/conversation/gazetteer.py index fcece34ac1d5..48f161d210f8 100644 --- a/homeassistant/components/conversation/gazetteer.py +++ b/homeassistant/components/conversation/gazetteer.py @@ -27,7 +27,7 @@ from gazetteer_matcher import ( ) from homeassistant.components.homeassistant.exposed_entities import async_should_expose -from homeassistant.const import ATTR_DEVICE_CLASS +from homeassistant.const import EntityStateAttribute from homeassistant.core import HomeAssistant, State, callback from homeassistant.helpers import ( area_registry as ar, @@ -129,7 +129,7 @@ def async_build_home(hass: HomeAssistant) -> Home: else None ), } - if device_class := state.attributes.get(ATTR_DEVICE_CLASS): + if device_class := state.attributes.get(EntityStateAttribute.DEVICE_CLASS): spec["device_class"] = device_class entities[state.entity_id] = spec