home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.57k stars 29.91k forks source link

Onvif not working after update 2023.4.5 #91594

Closed bmdadu closed 1 year ago

bmdadu commented 1 year ago

The problem

Onvif fail to initilize 2 dahua nvr after 2023.4.5 update...works with 2023.4.4 update

What version of Home Assistant Core has the issue?

2023.4.5

What was the last working version of Home Assistant Core?

2023.4.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Onvif

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

alexsalvo1 commented 1 year ago

I have this error: ONVIFCamera.create_pullpoint_subscription() takes 1 positional argument but 2 were given

Complete log:

Logger: homeassistant.config_entries Source: components/onvif/event.py:96 First occurred: 12:39:31 (11 occurrences) Last logged: 12:57:35

Error setting up entry Camara farola lateral - D0:22:12:DB:22:0E for onvif Error setting up entry Camara porche - D0:22:12:DB:39:90 for onvif Error setting up entry Camara farola cocina - D0:22:12:DB:22:A1 for onvif Error setting up entry Camara farola trasera - D0:22:12:DB:39:CF for onvif Error setting up entry Camara farola fachada - D0:22:12:DB:20:DE for onvif Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/onvif/init.py", line 33, in async_setup_entry await device.async_setup() File "/usr/src/homeassistant/homeassistant/components/onvif/device.py", line 109, in async_setup self.capabilities = await self.async_get_capabilities() File "/usr/src/homeassistant/homeassistant/components/onvif/device.py", line 271, in async_get_capabilities pullpoint = await self.events.async_start() File "/usr/src/homeassistant/homeassistant/components/onvif/event.py", line 96, in async_start if not await self.device.create_pullpoint_subscription( TypeError: ONVIFCamera.create_pullpoint_subscription() takes 1 positional argument but 2 were given

FranMaverix commented 1 year ago

TypeError: ONVIFCamera.create_pullpoint_subscription() takes 1 positional argument but 2 were given This error too with my 2 TAPO cameras

reg2294 commented 1 year ago

Same here with both my TAPO and V380 cameras:

Logger: homeassistant.config_entries Source: components/onvif/event.py:96 First occurred: 7:58:51 AM (6 occurrences) Last logged: 8:04:04 AM

Error setting up entry V380 - gate for onvif Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/onvif/init.py", line 33, in async_setup_entry await device.async_setup() File "/usr/src/homeassistant/homeassistant/components/onvif/device.py", line 109, in async_setup self.capabilities = await self.async_get_capabilities() File "/usr/src/homeassistant/homeassistant/components/onvif/device.py", line 271, in async_get_capabilities pullpoint = await self.events.async_start() File "/usr/src/homeassistant/homeassistant/components/onvif/event.py", line 96, in async_start if not await self.device.create_pullpoint_subscription( TypeError: ONVIFCamera.create_pullpoint_subscription() takes 1 positional argument but 2 were given

reg2294 commented 1 year ago

Issue fixed after updating TAPO custom component:

image