vincentwolsink / home_assistant_enphase_envoy_installer

This is a HACS custom integration for Enphase Envoys with firmware version 7 and up.
Apache License 2.0
54 stars 10 forks source link

[FEATURE] Token caching #84

Closed jsimonetti closed 10 months ago

jsimonetti commented 10 months ago

Describe the feature Use a cache for the authentication token. The tokens have different lifetimes depending on the account type. It would be nice if restarting HA and/or the integration did not always result in retrieving a new token.

Account type

Envoy

Home Assistant

vincentwolsink commented 10 months ago

Hi @jsimonetti, this is already implemented. Do you see other behaviour?

jsimonetti commented 10 months ago

Hi @vincentwolsink,

I do NOT explicitely see behaviour a cache is not used. I did not find a cache option or log entry in my logs, nor did I see it mentioned in release notes, so I made the assumption that is was not implemented. (Initialising the integration took quite some time, which led me to think the token was retrieved every time).

Thank you for confirming it is implemented. If I happen to see behaviour that does not indicate caching, I will open a bug report.

Thank you for the work!