Skip to content

Commit

Permalink
Merge pull request #18 from andrey-git/fix_sleep
Browse files Browse the repository at this point in the history
Fix sleep
  • Loading branch information
gjohansson-ST authored May 1, 2022
2 parents f45ac31 + 65005fb commit 6feaada
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pysensibo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ async def _get(
return await self._response(resp)
except Exception as error:
if retry is False:
asyncio.sleep(5)
await asyncio.sleep(5)
return self._get(path, params, True)
raise error

Expand All @@ -482,7 +482,7 @@ async def _put(
return await self._response(resp)
except Exception as error:
if retry is False:
asyncio.sleep(5)
await asyncio.sleep(5)
return self._put(path, params, data, True)
raise error

Expand All @@ -501,7 +501,7 @@ async def _post(
return await self._response(resp)
except Exception as error:
if retry is False:
asyncio.sleep(5)
await asyncio.sleep(5)
return self._post(path, params, data, True)
raise error

Expand All @@ -520,7 +520,7 @@ async def _patch(
return await self._response(resp)
except Exception as error:
if retry is False:
asyncio.sleep(5)
await asyncio.sleep(5)
return self._patch(path, params, data, True)
raise error

Expand All @@ -535,7 +535,7 @@ async def _delete(
return await self._response(resp)
except Exception as error:
if retry is False:
asyncio.sleep(5)
await asyncio.sleep(5)
return self._delete(path, params, True)
raise error

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
print(find_packages())
setup(
name="pysensibo",
version="1.0.13",
version="1.0.14",
description="asyncio-friendly python API for Sensibo",
long_description="asyncio-friendly python API for Sensibo"
"(https://sensibo.com). Requires Python 3.4+",
Expand Down

0 comments on commit 6feaada

Please sign in to comment.