We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d450f03 commit 2afa1ceCopy full SHA for 2afa1ce
plugwise_usb/helpers/cache.py
@@ -59,10 +59,8 @@ async def initialize_cache(self, create_root_folder: bool = False) -> None:
59
cache_dir = self._get_writable_os_dir()
60
await makedirs(cache_dir, exist_ok=True)
61
self._cache_path = cache_dir
62
- if os_name == "nt":
63
- self._cache_file = f"{cache_dir}\\{self._file_name}"
64
- else:
65
- self._cache_file = f"{cache_dir}/{self._file_name}"
+
+ self._cache_file = os_path_join(self._cache_path, self._file_name)
66
self._cache_file_exists = await ospath.exists(self._cache_file)
67
self._initialized = True
68
_LOGGER.debug("Start using network cache file: %s", self._cache_file)
0 commit comments