Robert Resch
d75dda0c05
Use RTCIceCandidate instead of str for candidate ( #129793 )
2024-11-04 10:38:27 +01:00
epenet
b41c477f44
Fix flaky camera test ( #129576 )
2024-11-01 10:15:20 +01:00
Krisjanis Lejejs
bf40e77d65
Add Stun server with port 3478 ( #129501 )
2024-10-30 15:40:23 +01:00
Martin Hjelmare
405a480cae
Create repair issue for legacy webrtc provider ( #129334 )
...
* Add repair issue
* Add tests
* Add option to not use builtin go2rtc provider
* Add test
* Add domain to new providers
* Add learn more url
* Update placeholder
* Promote the builtin provider
* Refactor provider storage
* Move check for legacy provider conflict to refresh
* Test provider registration race
* Add test for registering the same legacy provider twice
* Test test_get_not_supported_legacy_provider
* Remove blank line between bullets
* Call it built-in
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Revert "Add option to not use builtin go2rtc provider"
This reverts commit 4e31bad6c0c23d5a1c0935c985351808a46163d6.
* Revert "Add test"
This reverts commit ddf85fd4db2c78b15c1cdc716804b965f3a1f4e3.
* Update issue description
* async_close_session is optional
* Clean up after rebase
* Add required domain property to provider tests
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-30 14:11:17 +01:00
Martin Hjelmare
24829bc44f
Fix webrtc provider interface and tests ( #129488 )
...
* Fix webrtc provider tests
* Remove future code
* Add a test of the optional provider interface
2024-10-30 13:24:23 +01:00
Robert Resch
963829712d
Add CameraCapabilities ( #128455 )
2024-10-29 21:36:30 +01:00
Robert Resch
aa855e31c8
Convert async_get_webrtc_client_configuration to a callback ( #129329 )
2024-10-28 15:47:22 +01:00
Robert Resch
675ee8e813
Add async webrtc offer support ( #127981 )
...
* Add async webrtc offer support
* Create dataclass for messages
* Send session ID over websocket
* Fixes
* Rename
* Implement some review findings
* Add WebRTCError and small renames
* Use dedicated function instead of inspec
* Update go2rtc-client to 0.0.1b1
* Improve checking for sync offer
* Revert change as not needed anymore
* Typo
* Fix tests
* Add missing go2rtc tests
* Move webrtc offer tests to test_webrtc file
* Add ws camera/webrtc/candidate tests
* Add missing tests
* Implement suggestions
* Implement review changes
* rename
* Revert test to use ws endpoints
* Change doc string
* Don't import from submodule
* Get type form class name
* Update homeassistant/components/camera/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Adopt tests
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fix tests
---------
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Erik <erik@montnemery.com>
2024-10-28 15:46:15 +01:00
Erik Montnemery
3e62c6ae2f
Move core config functionality to its own module ( #129065 )
...
* Move core config functionality to its own module
* Adjust test
2024-10-24 13:34:51 +02:00
Erik Montnemery
487593af38
Allow configuring WebRTC stun and turn servers ( #128984 )
...
* Allow configuring WebRTC stun and turn servers
* Add tests
* Remove class WebRTCCoreConfiguration
2024-10-23 14:41:45 +02:00
Erik Montnemery
2c79173d20
Refactor camera.webrtc.register_ice_server ( #129024 )
...
* Refactor camera.webrtc.register_ice_server
* Apply suggestions from code review
Co-authored-by: Robert Resch <robert@resch.dev>
* Add missing import
---------
Co-authored-by: Robert Resch <robert@resch.dev>
2024-10-23 11:49:39 +02:00
Krisjanis Lejejs
de77751779
Change Stun server port to 80 ( #128879 )
2024-10-22 14:23:29 +02:00
Erik Montnemery
8e5abcf5c2
Deprecate entity_id template variable in camera services ( #128592 )
...
* Deprecate entity_id template variable in camera services
* Update snapshots
* Tiny lang tweak
* Fix translation
---------
Co-authored-by: Franck Nijhof <git@frenck.dev>
2024-10-21 19:38:02 +02:00
Erik Montnemery
9d0701a62b
Improve camera tests ( #128545 )
2024-10-17 16:36:42 +02:00
Robert Resch
b56e22d4ee
Use homeassistant STUN server ( #127922 )
2024-10-08 12:25:20 +02:00
Robert Resch
04860ae1d2
Add go2rtc and extend camera integration for better WebRTC support ( #124410 )
2024-10-03 09:20:03 +02:00
G Johansson
711e0ee503
Change camera state to an enum ( #126558 )
...
* Change camera state to an enum
* copy/paste mistake
* Add test deprecated constants
2024-09-24 12:12:01 +02:00
Marc Mueller
2f0dd6f704
Import Generator from collections.abc (2) ( #120915 )
2024-07-01 11:58:49 +02:00
epenet
fbaba3753b
Fix root-import pylint warning in components ( #119294 )
...
* Fix root-import pylint warning in components
* Adjust
* Adjust
2024-06-10 15:14:49 +02:00
epenet
1ebc1685f7
Improve type hints in camera tests ( #119264 )
2024-06-10 09:30:00 +02:00
epenet
092cdcfe91
Improve type hints in tests (a-h) ( #118379 )
2024-05-30 08:46:18 +02:00
J. Nick Koston
0b3627b59e
Add additional cached_property to camera entities ( #115075 )
2024-04-13 16:50:11 -05:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
J. Nick Koston
9cc0006b92
Ensure TurboJPEG is imported in the executor ( #113504 )
...
The import was too late and it eneded up being imported
in the event loop
2024-03-15 12:23:53 +01:00
On Freund
b9837a561b
Use friendly name for camera media source ( #110882 )
2024-03-12 21:20:14 +01:00
Marc Mueller
38adfbf1a3
Add empty line after module docstring [tests a-e] ( #112708 )
2024-03-08 08:50:25 -05:00
On Freund
e879ab0eef
Show WebRTC cameras that also support HLS in the media browser ( #108796 )
...
* Show WebRTC cameras in the media browser
* Only show webrtc cameras with source in the browser
* Address code review
* Refactor BrowseMediaSource creation
* Refactor
* Address code review
2024-02-18 10:12:08 -08:00
Marc Mueller
c82933175d
Use builtin TimeoutError [a-d] ( #109678 )
2024-02-05 11:31:33 +01:00
Erik Montnemery
c805ea7b4f
Include deprecated constants in wildcard imports ( #107114 )
2024-01-05 11:46:45 +01:00
J. Nick Koston
6506a8d511
Camera platform back-compat for custom components without CameraEntityFeature ( #106529 )
2023-12-29 00:45:35 +01:00
J. Nick Koston
abd3c54cbe
Add support for attribute caching to the camera platform ( #106256 )
2023-12-23 13:01:47 -10:00
Robert Resch
20ba764d92
Deprecate deprecated camera constants ( #106095 )
2023-12-23 10:46:23 +01:00
Michael
58070e14a7
Add significant Change support for camera ( #105866 )
2023-12-18 14:40:55 +01:00
Jan-Philipp Benecke
9ab1cb83d8
Update a-c* tests to use entity & device registry fixtures ( #103793 )
...
* Update a-c* tests to use entity & device registry fixtures
* Revert some changes
* Revert formatting
* retrigger CI
2023-11-12 13:45:30 -05:00
uvjustin
407aa31adc
Generate Stream snapshots using next keyframe ( #96991 )
...
* Add wait_for_next_keyframe option to stream images
Add STREAM_SNAPSHOT to CameraEntityFeature
Use wait_for_next_keyframe option for snapshots using stream
* Update stream test comments
* Add generic camera snapshot test
* Get stream still images directly in camera
Remove getting stream images from generic, nest, and ONVIF
Refactor camera preferences
Add use_stream_for_stills setting to camera
Update tests
* Only attempt to get stream image if integration supports stream
* Use property instead of entity registry setting
* Split out getting stream prerequisites from stream_source in nest
* Use cached_property for rtsp live stream trait
* Make rtsp live stream trait NestCamera attribute
* Update homeassistant/components/nest/camera.py
Co-authored-by: Allen Porter <allen.porter@gmail.com>
* Change usage of async_timeout
* Change import formatting in generic/test_camera
* Simplify Nest camera property initialization
---------
Co-authored-by: Allen Porter <allen.porter@gmail.com>
2023-08-26 10:39:40 -07:00
Erik Montnemery
9a3077d64a
Always setup demo platforms with device support from config entry ( #94586 )
...
* Always setup demo platforms with device support from config entry
* Adjust test fixutres
* Update tests depending on the demo integration
2023-06-14 16:50:35 +02:00
Erik Montnemery
0126cfa9d9
Allow exposing any entity to the default conversation agent ( #92398 )
...
* Allow exposing any entity to the default conversation agent
* Tweak
* Fix race, update tests
* Update tests
2023-05-03 09:45:54 -04:00
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants ( #92363 )
2023-05-02 22:08:09 +02:00
J. Nick Koston
e4744199ce
Raise an exception when trying to save camera snapshots to a not allowed path ( #91869 )
2023-04-23 01:15:56 +02:00
J. Nick Koston
d0d4ab6056
Require a list of entity ids when fetching history ( #90992 )
2023-04-08 16:14:44 -10:00
J. Nick Koston
1c57339ec3
Refactor recorder tests to use recorder history API ( #89565 )
2023-03-11 21:51:16 -05:00
Erik Montnemery
9989a4787b
Fix recorder platform tests ( #88330 )
2023-02-17 08:22:15 -06:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
fa7acb4f0d
Add type hints to integration tests (part 3) ( #87844 )
2023-02-10 16:05:01 +01:00
epenet
4142f0d15d
Add return type to tests without arguments ( #87613 )
...
* Add return type to tests without arguments
* Black
* Cancel fixture amends
2023-02-07 14:20:06 +01:00
uvjustin
31ad208500
Use async with to fetch HTTP streams in tests ( #82788 )
2022-11-27 14:35:03 -05:00
uvjustin
ee910bd0e4
Refactor camera stream settings ( #81663 )
2022-11-13 01:22:59 +08:00
uvjustin
84725f15a6
Use IntEnum for stream orientation ( #81835 )
...
* Use IntEnum for stream orientation
* Rename enum values
* Add comments
* Fix import
2022-11-09 07:28:28 -08:00
Erik Montnemery
31a787558f
Ensure recorder test fixture is setup before hass fixture ( #80528 )
...
* Ensure recorder test fixture is setup before hass fixture
* Adjust more tests
2022-10-19 07:58:47 +02:00
uvjustin
852b0caf5b
Add orientation transforms to stream ( #77439 )
2022-09-06 13:31:36 +08:00