mirror of
https://github.com/home-assistant/core.git
synced 2026-09-02 18:24:49 -05:00
Make sure conversation entities have correct name in list output (#118272)
This commit is contained in:
@@ -128,10 +128,14 @@ async def websocket_list_agents(
|
||||
language, supported_languages, country
|
||||
)
|
||||
|
||||
name = entity.entity_id
|
||||
if state := hass.states.get(entity.entity_id):
|
||||
name = state.name
|
||||
|
||||
agents.append(
|
||||
{
|
||||
"id": entity.entity_id,
|
||||
"name": entity.name or entity.entity_id,
|
||||
"name": name,
|
||||
"supported_languages": supported_languages,
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user