wildjaffa / ha-brave-summarizer

Ask Home Assistant question powered by the Brave Summarizer
1 stars 0 forks source link

Failed to Load Integration #2

Open EvantheGrump opened 2 months ago

EvantheGrump commented 2 months ago

Hey! I'm back. I have my Brave Pro AI API key (in the right place) now. However, when I ask a question, the service always returns that it could not find an answer in a timely manner. I have also discovered an error in Home Assistant itself, stating that it could not load the integration. (pictured below)

image

I would be happy to provide all of my configuration files for the summarizer. Thank you for your insight!

EvantheGrump commented 2 months ago

After messing around some more, I've learned a few things.

  1. The error isn't happening because of an update to the Brave Summarizer API. I tried it with both available api versions, and the older one did not support what your code is trying to do.
  2. I believe the error is happening in init.py, because it throws when told to initialize.

I'll continue to look, and update with any findings.

Also: on lines 38 and 39, there seems to be a typo. However, changing refernce to the correct spelling did not fix my issue, so I am leaving it as is. image

wildjaffa commented 2 months ago

Thanks for poking around at it! There's a chance it's because you're missing a services.yaml file I put in (same place as the configuration.yaml). I originally thought it was needed, but later thought it could just be included in configrations.yaml, but now's a good opportunity to test. This is the text along with a screenshot of what it looks like in my system

brave_summarizer: fields: question: required: true example: "can dogs eat apples" SupportsResponse: Only image

EvantheGrump commented 2 months ago

Same issue, both with the code snippet in the services.yaml and the configuration.yaml, and with the snippet only in services.yaml.

EvantheGrump commented 2 months ago

Also, the error message in the home assistant logs did not show up when the snippet was only in services.yaml, but asking a question still led to an unexpected error.

wildjaffa commented 2 months ago

Just giving a quick update, I tested on my instance and am also receiving an error. Going to play around with it in the next couple days, it's possible Brave made a change on their end.

EvantheGrump commented 2 months ago

Awesome, thanks for letting me know. I'll keep looking around as well! (I didn't mean to close the issue earlier)