Adapt the ONVIF Renewal termination_time for Amcrest cameras (#37750)

pull/38770/head
Eric Severance 2020-08-11 13:59:26 -07:00 committed by GitHub
parent cc4ebc925c
commit 61a911af41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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)