diff --git a/homeassistant/components/logi_circle/__init__.py b/homeassistant/components/logi_circle/__init__.py index 4e5ad0c5aebb75..2f34366aafa630 100644 --- a/homeassistant/components/logi_circle/__init__.py +++ b/homeassistant/components/logi_circle/__init__.py @@ -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: diff --git a/homeassistant/components/logi_circle/config_flow.py b/homeassistant/components/logi_circle/config_flow.py index 728ca27ba51511..7f1f085bbac246 100644 --- a/homeassistant/components/logi_circle/config_flow.py +++ b/homeassistant/components/logi_circle/config_flow.py @@ -157,7 +157,7 @@ async def _async_create_session(self, code): 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):