Always try PullPoint with ONVIF (#96377)

This commit is contained in:
J. Nick Koston 2023-07-14 15:23:00 -10:00 committed by GitHub
parent 7da8e0295e
commit 38630f7898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -387,8 +387,12 @@ class ONVIFDevice:
"WSPullPointSupport"
)
LOGGER.debug("%s: WSPullPointSupport: %s", self.name, pull_point_support)
# Even if the camera claims it does not support PullPoint, try anyway
# since at least some AXIS and Bosch models do. The reverse is also
# true where some cameras claim they support PullPoint but don't so
# the only way to know is to try.
return await self.events.async_start(
pull_point_support is not False,
True,
self.config_entry.options.get(
CONF_ENABLE_WEBHOOKS, DEFAULT_ENABLE_WEBHOOKS
),