Adapt the ONVIF Renewal termination_time for Amcrest cameras (#37750)
parent
cc4ebc925c
commit
61a911af41
|
@ -108,7 +108,9 @@ class EventManager:
|
||||||
return
|
return
|
||||||
|
|
||||||
termination_time = (
|
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)
|
await self._subscription.Renew(termination_time)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue