@@ -410,11 +410,10 @@ async def setup(self) -> ONVIFService:
410
410
#
411
411
# If this fails this is OK as it just means we will switch
412
412
# to webhook later when the first notification is received.
413
- #
414
- # WSAs not enabled on this service per
415
- # https://github.com/home-assistant/core/issues/92308
413
+ # WSAs enabled per
414
+ # https://github.com/home-assistant/core/issues/83524 https://github.com/home-assistant/core/issues/45513
416
415
service = await self ._device .create_onvif_service (
417
- "pullpoint" , port_type = "NotificationConsumer"
416
+ "pullpoint" , port_type = "NotificationConsumer" , enable_wsa = True
418
417
)
419
418
self ._operation = service .document .bindings [service .binding_name ].get (
420
419
"PullMessages"
@@ -728,10 +727,10 @@ async def create_deviceio_service(self) -> ONVIFService:
728
727
async def create_events_service (self ) -> ONVIFService :
729
728
"""Service creation helper.
730
729
731
- WSAs not enabled on this service per
732
- https://github.com/home-assistant/core/issues/92308
730
+ WSAs enabled per
731
+ https://github.com/home-assistant/core/issues/83524 https://github.com/home-assistant/core/issues/45513
733
732
"""
734
- return await self .create_onvif_service ("events" )
733
+ return await self .create_onvif_service ("events" , enable_wsa = True )
735
734
736
735
async def create_analytics_service (self ) -> ONVIFService :
737
736
"""Service creation helper."""
@@ -752,23 +751,24 @@ async def create_replay_service(self) -> ONVIFService:
752
751
async def create_pullpoint_service (self ) -> ONVIFService :
753
752
"""Service creation helper.
754
753
755
- WSAs not enabled on this service per
756
- https://github.com/home-assistant/core/issues/92308
754
+ WSAs enabled per
755
+ https://github.com/home-assistant/core/issues/83524 https://github.com/home-assistant/core/issues/45513
757
756
"""
758
757
return await self .create_onvif_service (
759
758
"pullpoint" ,
760
759
port_type = "PullPointSubscription" ,
761
760
read_timeout = _PULLPOINT_TIMEOUT ,
762
761
write_timeout = _PULLPOINT_TIMEOUT ,
762
+ enable_wsa = True ,
763
763
)
764
764
765
765
async def create_notification_service (self ) -> ONVIFService :
766
766
"""Service creation helper.
767
767
768
- WSAs not enabled on this service per
769
- https://github.com/home-assistant/core/issues/92308
768
+ WSAs enabled per
769
+ https://github.com/home-assistant/core/issues/83524 https://github.com/home-assistant/core/issues/45513
770
770
"""
771
- return await self .create_onvif_service ("notification" )
771
+ return await self .create_onvif_service ("notification" , enable_wsa = True )
772
772
773
773
async def create_subscription_service (
774
774
self , port_type : Optional [str ] = None
0 commit comments