mirror of
https://github.com/acon96/home-llm.git
synced 2026-01-08 21:28:05 -05:00
Fix area_id
Fix the usage of the area_id variable to also use device area
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user