Skip to content

Commit

Permalink
Merge pull request #17 from PinoutLTD/libp2p_reports
Browse files Browse the repository at this point in the history
Fix blocking call on listdir
  • Loading branch information
LoSk-p authored Aug 26, 2024
2 parents 7875235 + 7abcd12 commit 3b2fd77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/robonomics_report_service/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Robonomics Report Service",
"config_flow": true,
"codeowners": ["@pinoutcloud"],
"version": "0.3.0",
"version": "0.3.1",
"dependencies": ["persistent_notification", "http", "frontend"],
"requirements": ["robonomics-interface~=1.6.0", "pinatapy-vourhey==0.1.9", "tenacity==8.2.2", "py-ws-libp2p-proxy==0.2.1"],
"documentation": "https://wiki.robonomics.network/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _encrypt_json(self, data: dict) -> str:
)

async def _clear_tempdirs(self) -> None:
dirs_to_delete = get_tempdir_filenames(IPFS_PROBLEM_REPORT_FOLDER)
dirs_to_delete = await self.hass.async_add_executor_job(get_tempdir_filenames, IPFS_PROBLEM_REPORT_FOLDER)
for dirname in dirs_to_delete:
await self._remove_tempdir(dirname)

Expand Down

0 comments on commit 3b2fd77

Please sign in to comment.