Remove unnecessary string formatting. (#146762)

This commit is contained in:
Paulus Schoutsen 2025-06-13 13:10:47 -04:00 committed by GitHub
parent 524c16fbe1
commit d1e2c62433
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,