Option to select what video source Axis camera should use (#45268)

* Fully working proposal of config option to select what video source camera entity should use

* Bump dependency to v43
Reflect dependency changes in how image sources is now a dict

* Fix bdracos comment
This commit is contained in:
Robert Svensson 2021-01-23 00:15:58 +01:00 committed by GitHub
parent 68e7ecb74b
commit 03fb73c0ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 99 additions and 34 deletions

View file

@ -64,7 +64,7 @@ async def test_camera_with_stream_profile(hass):
assert camera_entity.image_source == "http://1.2.3.4:80/axis-cgi/jpg/image.cgi"
assert (
camera_entity.mjpeg_source
== "http://1.2.3.4:80/axis-cgi/mjpg/video.cgi?&streamprofile=profile_1"
== "http://1.2.3.4:80/axis-cgi/mjpg/video.cgi?streamprofile=profile_1"
)
assert (
await camera_entity.stream_source()