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
Evan Bruhn 2019-06-25 02:36:39 +10:00 committed by Paulus Schoutsen
parent 75ec855822
commit 34231383ec
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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):