heyajohnny / cryptoinfo

Provides Home Assistant sensors for all cryptocurrencies supported by CoinGecko
GNU General Public License v3.0
49 stars 14 forks source link

Fix API fetch failures #35

Closed TheHolyRoger closed 1 year ago

TheHolyRoger commented 1 year ago

Since coingecko has currently disabled the API endpoint, I think I was helping to DDOS the server with endless retries to update the state :)

Wrapping the request in this try statement resolves it for me and will (try to) fetch the next update on the interval instead of endlessly looping

heyajohnny commented 1 year ago

Seems like a good solution. Thnx!