Skip to content

Commit

Permalink
Merge pull request #363 from JurajNyiri/5.2.4
Browse files Browse the repository at this point in the history
Fix #317: Recording Avalible After an Hour
  • Loading branch information
JurajNyiri authored Jul 6, 2023
2 parents c69dd85 + 8cf3dcf commit 92987a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tapo_control/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"version": "5.1.0",
"requirements": [
"pytapo==3.1.12"
"pytapo==3.1.18"
],
"dependencies": [
"ffmpeg",
Expand Down
2 changes: 2 additions & 0 deletions custom_components/tapo_control/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ async def getRecording(
startDate: int,
endDate: int,
) -> str:
timeCorrection = await hass.async_add_executor_job(tapo.getTimeCorrection)
# this NEEDS to happen otherwise camera does not send data!
await hass.async_add_executor_job(tapo.getRecordings, date)

Expand All @@ -180,6 +181,7 @@ async def getRecording(
tapo,
startDate,
endDate,
timeCorrection,
coldDirPath,
0,
None,
Expand Down

0 comments on commit 92987a7

Please sign in to comment.