mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Remove unnecessary string formatting. (#146762)
This commit is contained in:
parent
524c16fbe1
commit
d1e2c62433
@ -391,7 +391,7 @@ class GoogleGenerativeAIConversationEntity(
|
|||||||
"Last content in chat log is not an AssistantContent: %s. This could be due to the model not returning a valid response",
|
"Last content in chat log is not an AssistantContent: %s. This could be due to the model not returning a valid response",
|
||||||
chat_log.content[-1],
|
chat_log.content[-1],
|
||||||
)
|
)
|
||||||
raise HomeAssistantError(f"{ERROR_GETTING_RESPONSE}")
|
raise HomeAssistantError(ERROR_GETTING_RESPONSE)
|
||||||
response.async_set_speech(chat_log.content[-1].content or "")
|
response.async_set_speech(chat_log.content[-1].content or "")
|
||||||
return conversation.ConversationResult(
|
return conversation.ConversationResult(
|
||||||
response=response,
|
response=response,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user