Do not fail if Reolink ONVIF cannot be connected (#104947)
parent
bf63674af2
commit
3316f6980d
|
@ -165,7 +165,7 @@ class ReolinkHost:
|
||||||
if self._onvif_push_supported:
|
if self._onvif_push_supported:
|
||||||
try:
|
try:
|
||||||
await self.subscribe()
|
await self.subscribe()
|
||||||
except NotSupportedError:
|
except ReolinkError:
|
||||||
self._onvif_push_supported = False
|
self._onvif_push_supported = False
|
||||||
self.unregister_webhook()
|
self.unregister_webhook()
|
||||||
await self._api.unsubscribe()
|
await self._api.unsubscribe()
|
||||||
|
|
Loading…
Reference in New Issue