Avoid version check when running as HA-addon
When there is a problem starting evcc within HA, the restarts happen quite often. More often than github allows for contacting to check the version. So you get errors like: [main ] ERROR xxx version check failed: GET https://api.github.com/repos/evcc-io/evcc/releases/latest: 403 API rate limit exceeded for x.x.x.x. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) [rate reset in 15m38s] (installed: 0.300.3)
HA makes sure the version of the addon is checked regularly, and an additional check within evcc itself is not strictly required, or maybe even wrong, if evcc is availble, but the addon is not (e.g. failure during build, ...)
An additional option at startup confiigure in the HA-addon might be a simple solution to avoid the version check. This could be used as well in the debian package startup scripts, as the package manager is responsible here.
When there is a problem starting evcc within HA, the restarts happen quite often.
What problem? We should rther dix the root cuse instead of working around the side effects. We won‘t change this.
Sure solving the root cause for this time is the most important part. But there will be future changes, which might be incompatible with anything from the past which might cause new errors stopping the system from startup. And this might even influence other applications depending on github access. Especially when there is an error in the startup, the versioncheck might not be the most important part,when version updates are done externally (HA, distribution) anyway. Not sure if I'm able to work with go, so no idea if I'll manage to have a proposal for this. Should be rather simple I hope.
There are no plans to change this.