Save cached logi_circle tokens in config folder (#24726)
Instead of the working directory, which it's doing currently. Matches pattern observed on Abode, Ring, Skybell integrations.pull/24776/head
parent
75ec855822
commit
34231383ec
|
@ -105,7 +105,7 @@ async def async_setup_entry(hass, entry):
|
|||
client_secret=entry.data[CONF_CLIENT_SECRET],
|
||||
api_key=entry.data[CONF_API_KEY],
|
||||
redirect_uri=entry.data[CONF_REDIRECT_URI],
|
||||
cache_file=DEFAULT_CACHEDB
|
||||
cache_file=hass.config.path(DEFAULT_CACHEDB)
|
||||
)
|
||||
|
||||
if not logi_circle.authorized:
|
||||
|
|
|
@ -157,7 +157,7 @@ class LogiCircleFlowHandler(config_entries.ConfigFlow):
|
|||
client_secret=client_secret,
|
||||
api_key=api_key,
|
||||
redirect_uri=redirect_uri,
|
||||
cache_file=DEFAULT_CACHEDB)
|
||||
cache_file=self.hass.config.path(DEFAULT_CACHEDB))
|
||||
|
||||
try:
|
||||
with async_timeout.timeout(_TIMEOUT):
|
||||
|
|
Loading…
Reference in New Issue