Save updated cookies & retry failed requests
A long existing issue with the Google Maps integration is that the cookies in the cookies file will eventually expire, and a new cookies file will need to be obtained and installed. For many that is not a huge inconvenience because the obtained cookies are generally good for a year or so. But for many, and for some unknown reason, they expire very quickly, often upon restarting HA.
This release adds a feature to save updated cookies sent by the server. Hopefully this will avoid the issue of expiring cookies altogether. But since the way these cookies work is still a bit of a mystery, debug logging has been added that lists out the cookies at startup and if an invalid cookies error ever happens. (It only outputs the names & expiration dates of the cookies and not their values.) It also writes a debug message whenever updated cookies are received & saved listing the names of the cookies that have been updated. So, if anyone still has issues with prematurely expiring cookies, hopefully this debug output will help diagnose the problem.
In addition to the above, failed requests will now be retried so hopefully connection & 500 errors etc. will no longer be seen by the user (which used to result in temporary unavailable states.)