-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Update ONVIF component to SUPPORT_STREAM #22569
Conversation
You need to fix lint errors else all good |
Remove extra spaces.
I think I did this now but I’m new to this PR thing. |
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.
self._input
starts as None
and does not get set until obtain_input_uri
is called in either async_camera_image
or handle_async_mjpeg_stream
is called at least once. This will mean the preload stream
camera configuration will not work for this platform.
The setup_platform
should be converted to async
, and an async def initialize
method or similar should be created to obtain the input URL as this component loads in order to work properly.
* Update Onvif component to SUPPORT_STREAM * Update camera.py * Update camera.py * Update camera.py Remove extra spaces. * lookup URL when camera is added to hass and add extra guards
Description:
Add SUPPORT_STREAM to ONVIF component to allow streaming to the Google Assistant.
Related issue (if applicable): fixes #<0.91.0-b3
Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
REQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.If the code does not interact with devices: