Skip to content

Commit

Permalink
bump to 3.1.29
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeftor committed Oct 24, 2023
1 parent 116aecc commit 34767d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "intellifire4py"
version = "3.1.27"
version = "3.1.29"
description = "Intellifire4Py"
authors = ["Jeff Stein <[email protected]>"]
license = "MIT"
Expand Down
14 changes: 8 additions & 6 deletions src/intellifire4py/cloud_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ async def stop_background_polling(self) -> bool:
self._log.info("Stopping background task to issue a command")
return was_running

async def __background_poll(self, minimum_wait_in_seconds: int = 10) -> None:
async def __background_poll(self, minimum_wait_in_seconds: int = 15) -> None:
"""Start a looping cloud background longpoll task."""
self._log.debug("__background_poll:: Function Called")
self._is_polling_in_background = True
Expand All @@ -391,11 +391,13 @@ async def __background_poll(self, minimum_wait_in_seconds: int = 10) -> None:
self._log.debug("__background_poll:: Loop start time %f", start)

try:
new_data = await self.long_poll()

if new_data:
self._log.debug(self.data)

# new_data = await self.long_poll()
#
# if new_data:
# self._log.debug(self.data)
#
# Long poll didn't seem to be working so switched to normal polling again
await self.poll()
end = time.time()
duration: float = end - start
sleep_time: float = minimum_wait_in_seconds - duration
Expand Down

0 comments on commit 34767d1

Please sign in to comment.