Adjust timeout

This commit is contained in:
Davide Depau 2024-08-11 20:41:51 +02:00
parent 34fcb1fc0a
commit 5bf7b519b7

4
bot.py
View file

@ -67,7 +67,7 @@ class Bot:
def _take_photo_blocking(
self,
adjust_perspective=True,
timeout: float = 5.0,
timeout: float = 10.0,
) -> List[cv2.typing.MatLike]:
privacy_mode = self.tapo.getPrivacyMode()
@ -295,7 +295,7 @@ class Bot:
)
async def take_photo(
self, adjust_perspective=True, timeout=5.0
self, adjust_perspective=True, timeout=10.0
) -> List[cv2.typing.MatLike]:
item_state = await self._get_item_state()
if item_state == "OFF":