mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Adapt the ONVIF Renewal termination_time for Amcrest cameras (#37750)
This commit is contained in:
parent
cc4ebc925c
commit
61a911af41
@ -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…
x
Reference in New Issue
Block a user