Do not fail if Reolink ONVIF cannot be connected (#104947)

This commit is contained in:
starkillerOG 2023-12-04 10:44:29 +01:00 committed by Franck Nijhof
parent 214f214122
commit cd86318b4b
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

View file

@ -163,7 +163,7 @@ class ReolinkHost:
if self._onvif_push_supported:
try:
await self.subscribe()
except NotSupportedError:
except ReolinkError:
self._onvif_push_supported = False
self.unregister_webhook()
await self._api.unsubscribe()