Fix area_id

Fix the usage of the area_id variable to also use device area
This commit is contained in:
Paul Triebel
2025-08-27 15:16:01 +02:00
committed by GitHub
parent ebd001fee2
commit 62f6dcb047

View File

@@ -591,7 +591,7 @@ class LocalLLMAgent(ConversationEntity, AbstractConversationAgent):
area_id = entity.area_id
if area_id:
area = area_registry.async_get_area(entity.area_id)
area = area_registry.async_get_area(area_id)
if area:
attributes["area_id"] = area.id
attributes["area_name"] = area.name