Adapt the ONVIF Renewal termination_time for Amcrest cameras (#37750)
This commit is contained in:
parent
cc4ebc925c
commit
61a911af41
1 changed files with 3 additions and 1 deletions
|
@ -108,7 +108,9 @@ class EventManager:
|
|||
return
|
||||
|
||||
termination_time = (
|
||||
(dt_util.utcnow() + dt.timedelta(days=1)).replace(microsecond=0).isoformat()
|
||||
(dt_util.utcnow() + dt.timedelta(days=1))
|
||||
.isoformat(timespec="seconds")
|
||||
.replace("+00:00", "Z")
|
||||
)
|
||||
await self._subscription.Renew(termination_time)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue