212 Commits

Author SHA1 Message Date
Paul Tarjan
a25038259e Fix generic camera preview stream URL to be absolute (#159113)
Co-authored-by: Joostlek <joostlek@outlook.com>
2025-12-18 19:14:13 +01:00
Robert Resch
67aeafa797 Add advanced section for generic camera config flow (#148430) 2025-12-18 13:30:25 +01:00
Paul Tarjan
cccefddb72 Set default RTSP transport protocol to TCP in Generic Camera (#159061) 2025-12-15 10:06:09 +01:00
Marc Mueller
931b2c2db0 Update av to 16.0.1 (#157044)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-22 18:25:12 +01:00
Robert Resch
96f84b2b99 Sort homeassistant json files (#155285) 2025-10-28 10:33:10 +01:00
Marc Mueller
e4b5e35d1d Update Pillow to 12.0.0 (#154637) 2025-10-16 18:25:36 +01:00
Dave T
663431fc80 Allow following of 302 redirects in generic camera (#154308) 2025-10-13 16:11:34 -04:00
Erik Montnemery
dd399ef59f Refactor EntityPlatform (#147927) 2025-07-22 14:35:57 +02:00
Marc Mueller
6364a9ad98 Update pillow to 11.3.0 (#147869) 2025-07-01 14:31:06 +01:00
Marc Mueller
03ccb529e4 Update pillow to 11.2.1 (#142811) 2025-04-12 12:03:28 -10:00
Erik Montnemery
f83c8de8d3 Update signature of platforms' async_setup_entry (#138201) 2025-02-10 21:08:03 +01:00
Norbert Rittel
c2f94542aa Fix uppercase / lowercase setup strings in Generic Camera (#137219) 2025-02-03 12:38:38 +00:00
Marc Mueller
e6a18357db Update pillow to 11.1.0 (#134469) 2025-01-02 22:36:14 +01:00
Dave T
8b20272272 Refactor and simplify config flow in generic camera (#134330)
Refactor and simplify config flow
2024-12-31 07:05:50 -08:00
Dave T
bf59241dab Add stream preview to options flow in generic camera (#133927)
* Add stream preview to options flow

* Increase test coverage

* Code review: use correct flow handler type in cast

* Restore test coverage to 100%

* Remove error and test that can't be triggered yet
2024-12-30 15:46:42 -08:00
Allen Porter
6edf06f8a4 Converge stream av open methods, options, and error handling (#134020)
* Converge stream av open methods, options, and error handling

* Remove exception that is never thrown

* Update exceptions thrown in generic tests

* Increase stream test coverage
2024-12-27 18:47:33 -08:00
Dave T
561f319e3b Fix missing % in string for generic camera (#133925)
Fix missing % in generic camera string
2024-12-24 07:45:13 +01:00
Dave T
484f149e61 Add config flow stream preview to generic camera (#122563)
Co-authored-by: Allen Porter <allen.porter@gmail.com>
2024-12-22 17:31:03 +01:00
epenet
1e303dd706 Fix missing translations in generic (#130672) 2024-11-15 09:48:02 +01:00
Marc Mueller
c89bf6a9aa Update pillow to 11.0.0 (#130194) 2024-11-11 20:12:32 +01:00
Marc Mueller
41a81cbf15 Switch back to av 13.1.0 (#129699) 2024-11-04 14:48:28 +01:00
epenet
6d561a9796 Remove deprecated property setters in option flows (#129773) 2024-11-04 14:21:26 +01:00
J. Nick Koston
c9311ea3c9 Bump yarl to 1.14.0 (#127924) 2024-10-08 14:01:37 +02:00
Erik Montnemery
2b50f65c49 Store generic camera flow data in flow handler attributes (#127405) 2024-10-03 12:23:40 +02:00
epenet
47a9dda3b8 Use root import in components (#125858) 2024-09-12 22:21:21 +02:00
Erik Montnemery
fce2e21c9f Update icons.json to new service schema part 1 (#124768) 2024-08-28 13:47:02 +02:00
Erik Montnemery
04570edb3f Remove unnecessary assignment of Template.hass from generic camera (#123767) 2024-08-13 11:00:33 +02:00
Marc Mueller
13da20ddf4 Update Pillow to 10.4.0 (#122237) 2024-07-20 12:58:49 +02:00
Dave T
a358609609 Improve user message if stream is not set up in generic camera (#121308) 2024-07-06 10:50:16 +02:00
Dave T
b69789d056 Don't prompt user to verify still image if none was provided in generic camera (#118599)
Skip user prompt for preview image if only stream
2024-06-01 10:30:32 -04:00
Dave T
30f789d5e9 Set integration type for generic (#117464) 2024-05-15 09:33:47 +02:00
Marc Mueller
64a4d52b3c Update pillow to 10.3.0 (#115524) 2024-04-13 18:26:33 +02:00
Sid
f7b7f74d10 Enable Ruff TRY201 (#114269)
* Enable Ruff TRY201

* remove redundant rules
2024-03-28 10:18:07 +01:00
Dave T
a6d98c1857 Improve user error messages for generic camera (#112814)
* Generic camera: Insufficient error message when configuration fails
Fixes #112279

* Add tests

* Fix typo in string

* Add new error strings to options flow.

* Group and improve error strings following PR review
2024-03-21 21:54:45 +00:00
Sid
82a60fe8ad Enable Ruff RSE (#113695) 2024-03-18 00:40:38 +01:00
Marc Mueller
8809d3aa88 Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
Erik Montnemery
e06446d0fa Migrate integrations e-h to generic flowhandler (#111862) 2024-02-29 20:07:36 +01:00
Joost Lekkerkerker
147c261389 Add icon translations to Generic camera (#111612)
Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
2024-02-27 13:42:56 -10:00
Jan Bouwhuis
94ccd59123 Fix generic camera error when template renders to an invalid URL (#109737) 2024-02-05 20:19:38 +01:00
Franck Nijhof
516fa64da5 Update Pillow to 10.2.0 (#108422) 2024-01-22 13:43:06 +01:00
Marc Mueller
369ed5b701 Improve typing for the generic integration (#108094) 2024-01-15 23:11:46 +01:00
Jan Bouwhuis
4b8d8baa69 Remove deprecated YAML import from generic camera (#107992) 2024-01-14 09:36:00 +01:00
Daniel Schall
8778763a3e Synchronize and cache Generic Camera still image fetching (#105821) 2023-12-27 21:19:25 +01:00
Jan-Philipp Benecke
fe15ed4a28 Add device info to generic camera (#103715)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-11-14 10:50:55 +01:00
Franck Nijhof
7e6c14d062 Update Pillow to 10.1.0 (#102419) 2023-10-21 00:26:02 +02:00
Franck Nijhof
fb724472fb Update Pillow to 10.0.1 (#101368) 2023-10-04 09:54:43 +02: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
Marc Mueller
5dd3f05db8 Use asyncio.timeout [f-h] (#98449) 2023-08-15 08:37:06 -05:00
Marc Mueller
54cbc85c13 Add types-Pillow dependency (#98266) 2023-08-13 11:57:46 -05:00
Marc Mueller
68cb7a7dde Update ha-av to 10.1.1 (#97481) 2023-07-30 18:40:38 +02:00