dylandoamaral / trakt-integration

A Trakt integration for Home Assistant compatible with upcoming media card
MIT License
30 stars 12 forks source link

Applied cache strategy to avoid API_RATE_LIMIT errors (issue #71) #76

Closed Anrolosia closed 1 year ago

Anrolosia commented 1 year ago

Hey @dylandoamaral ,

I implemented a cache mechanism to avoid issues with RATE_LIMIT for next_to_watch sensor. I set 5 minutes by default but feel free to test and refactor if you want :)

Hopefully it will fix issue #71

dylandoamaral commented 1 year ago

This is a good idea, I will merge the PR and make some change in another of my PR. Tbh I don't know how to put commit in this one...