-
-
Notifications
You must be signed in to change notification settings - Fork 32k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ONVIF Camera added Error handling and rtsp authentication. #11129
Conversation
) | ||
self._input = stream_uri.Uri.replace( | ||
'rtsp://', 'rtsp://{}:{}@'.format(config.get( | ||
CONF_USERNAME), config.get(CONF_PASSWORD)), 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuation line missing indentation or outdented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
_LOGGER.debug("ONVIF Camera Using the following URL for %s: %s", | ||
self._input = None | ||
try: | ||
_LOGGER.debug("Attempting to communicate with ONVIF Camera: %s on port %s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (87 > 79 characters)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Bugfixes for several issues with hass.io and non-venv installations
Do I need to do any other changes to this? |
I would really appreciate if this PR can be merged in the next days, because I have a PR in the pipe-line since almost 1 month, which is in conflict with that PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed pep errors
Bugfixes for several issues with hass.io and non-venv installations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
switch to use proper onvifcamersa instead of service from a wsdl
… dev # Conflicts: # homeassistant/components/camera/onvif.py
Bugfixes for several issues with hass.io and non-venv installations
Description:
Added passing of credentials to RTSP stream
Changed from ONVIFService to ONVIFCamera as ONVIFService didn't contain the same error handling.
Changed method to get Stream URL from camera to a more compatible method
Added extra Error handling
Checklist:
If the code communicates with devices, web services, or third-party tools:
tox
run successfully. Your PR cannot be merged unless tests pass