From ca1c366f4f71833c8ee9319b22f96f83289fde96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ab=C3=ADlio=20Costa?= Date: Mon, 22 Sep 2025 08:57:16 +0100 Subject: [PATCH] Remove unused var from llm helper (#152724) --- homeassistant/helpers/llm.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/homeassistant/helpers/llm.py b/homeassistant/helpers/llm.py index 9a019551c1e..1eb30fe7512 100644 --- a/homeassistant/helpers/llm.py +++ b/homeassistant/helpers/llm.py @@ -656,7 +656,6 @@ def _get_exposed_entities( if not async_should_expose(hass, assistant, state.entity_id): continue - description: str | None = None entity_entry = entity_registry.async_get(state.entity_id) names = [state.name] area_names = [] @@ -692,9 +691,6 @@ def _get_exposed_entities( if (parsed_utc := dt_util.parse_datetime(state.state)) is not None: info["state"] = dt_util.as_local(parsed_utc).isoformat() - if description: - info["description"] = description - if area_names: info["areas"] = ", ".join(area_names)