Skip to content

Commit 00955b8

Browse files
authored
Fix empty llm api list in chat log (home-assistant#153996)
1 parent 045b9d7 commit 00955b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

homeassistant/components/conversation/chat_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ async def async_provide_llm_data(
514514
"""Set the LLM system prompt."""
515515
llm_api: llm.APIInstance | None = None
516516

517-
if user_llm_hass_api is None:
517+
if not user_llm_hass_api:
518518
pass
519519
elif isinstance(user_llm_hass_api, llm.API):
520520
llm_api = await user_llm_hass_api.async_get_api_instance(llm_context)

0 commit comments

Comments
 (0)