No ONVIF camera devices and instances since 115 upgrade

Hi,
After 115 upgrade I have no ONVIF camera. Following the integration procedure I cannot get any camera instance. Looking for errors in the log I’ve found the following:

Logger: homeassistant.config_entries
Source: components/onvif/__init__.py:136
First occurred: 9:51:10 (1 occurrences)
Last logged: 9:51:10
Error setting up entry NVT - 0012414e169e for onvif

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 228, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/onvif/__init__.py", line 86, in async_setup_entry
    await async_populate_snapshot_auth(hass, device, entry)
  File "/usr/src/homeassistant/homeassistant/components/onvif/__init__.py", line 155, in async_populate_snapshot_auth
    auth = await _get_snapshot_auth(hass, device, entry)
  File "/usr/src/homeassistant/homeassistant/components/onvif/__init__.py", line 139, in _get_snapshot_auth
    response = await hass.async_add_executor_job(_get)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/onvif/__init__.py", line 136, in _get
    return requests.get(snapshot_uri, timeout=1, auth=auth)
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 637, in send
    adapter = self.get_adapter(url=request.url)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 730, in get_adapter
    raise InvalidSchema("No connection adapters were found for {!r}".format(url))
requests.exceptions.InvalidSchema: No connection adapters were found for 'rtsp://192.168.100.99:8888/user=admin_password=qb7m2DZR_channel=0_stream=0.sdp?real_stream'

With 114 the camera was working like a charm

Thanks

Did you resolved this issue or did anyone else?

@rjperezcolmenar I’m facing the exact same issue. I even checked everything on my end but after pasting the rtsp stream into software like VLC I can see it is still working. Using HA version 114 everything is working properly but as soon as I update to 115/116 it breaks with exact same error you have:

Logger: homeassistant.config_entries
Source: components/onvif/__init__.py:137
First occurred: 21:32:33 (2 occurrences)
Last logged: 21:41:03

Error setting up entry ONVIF CAMERA for onvif
Error setting up entry NVT - 30:FF:F6:7F:9D:72 for onvif
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 231, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/onvif/__init__.py", line 87, in async_setup_entry
    await async_populate_snapshot_auth(hass, device, entry)
  File "/usr/src/homeassistant/homeassistant/components/onvif/__init__.py", line 156, in async_populate_snapshot_auth
    auth = await _get_snapshot_auth(hass, device, entry)
  File "/usr/src/homeassistant/homeassistant/components/onvif/__init__.py", line 140, in _get_snapshot_auth
    response = await hass.async_add_executor_job(_get)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/onvif/__init__.py", line 137, in _get
    return requests.get(snapshot_uri, timeout=1, auth=auth)
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 637, in send
    adapter = self.get_adapter(url=request.url)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 730, in get_adapter
    raise InvalidSchema("No connection adapters were found for {!r}".format(url))
requests.exceptions.InvalidSchema: No connection adapters were found for 'rtsp://192.168.1.132:554/user=admin_password=XXXXXXXX_channel=0_stream=0.sdp?real_stream'

EDIT:
I’ve just reported this is an issue on Github: https://github.com/home-assistant/core/issues/41430

No, I have tried with al 115 version and 116 but I get the same issue. I returned to 114.