Commit graph

32 commits

Author SHA1 Message Date
Marc Mueller
5dd3f05db8
Use asyncio.timeout [f-h] () 2023-08-15 08:37:06 -05:00
Marc Mueller
54cbc85c13
Add types-Pillow dependency () 2023-08-13 11:57:46 -05:00
Dave T
35f21dcf9c
Add repair hint to deprecate generic camera yaml config () 2023-07-23 11:10:18 +02:00
Dave T
7fa86d3998
Simplify parsing of user input during config flow for generic ()
Co-authored-by: Dave T <davet2001@users.noreply.github.com>
2023-06-27 21:29:06 +02:00
Franck Nijhof
c3936e6f14
Replace isort with ruff () 2023-06-08 23:43:56 +02:00
Franck Nijhof
79b52a2b41
Stricter pylint message control () 2023-01-20 13:47:55 +01:00
uvjustin
ee910bd0e4
Refactor camera stream settings () 2022-11-13 01:22:59 +08:00
Dave T
e5716efa9c
Add visual image preview during generic camera options flow ()
Co-authored-by: Dave T <davet2001@users.noreply.github.com>
2022-10-25 10:03:19 +02:00
Dave T
6040c30b45
Add visual image preview during generic camera config flow ()
* Add visual preview during setup of generic camera

* Code review: standardize preview  url

* Fix slug test

* Refactor to use HomeAssistantView

* Code review: simplify

* Update manifest

* Don't illegally access protected member

* Increase test coverage

* Prevent browser caching of preview images.

* Code review:move incrementor to ?t=X + simplify

* Discard old flow preview data

* Increase test coverage

* Code review: rename variables for clarity

* Add timeout for image previews

* Fix preview timeout tests

* Simplify: store cam image preview in config_flow

* Call step method to transition between flow steps

* Only store user_input in flow, not CameraObject

* Fix problem where test wouldn't run in isolation.

* Simplify test

* Don't move directly to another step's form

* Remove unused constant

* Simplify test

Co-authored-by: Dave T <davet2001@users.noreply.github.com>
2022-10-06 22:24:19 +02:00
Dave T
737a1fd9fa
Dont substitute user/pass for relative stream urls on generic camera ()
Co-authored-by: Dave T <davet2001@users.noreply.github.com>
2022-07-03 13:26:00 -07:00
Dave T
e64336cb91
Allow configuring username and password in generic camera config flow ()
* Add ability to use user & pw not in stream url

* Increase test coverage to 100%

* Increase test coverage

* Verify that stream source includes user:pass

* Code review: refactor test to use MockConfigEntry

* Code review: Improve test docstring

* Edit comment; retrigger CI.

Co-authored-by: Dave T <davet2001@users.noreply.github.com>
2022-06-29 10:54:04 +02:00
Dave T
cdd5a5f68b
Generic ipcam configflow2 followup ()
* Address code review comments

* Add type hints

* Remvoe unused strings

* Remove persistent notification setup

* Patch async_configre

* Fix pylint warning

* Address review comments

* Clean types

* Code review: defer local var assignment

Co-authored-by: Dave T <davet2001@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-17 07:07:21 +02:00
uvjustin
01a4a83bab
Improve stream playback on high latency cameras ()
* Disable LL-HLS for HLS sources
* Add extra wait for Nest cameras
2022-06-17 01:48:52 +10:00
uvjustin
b1f2e5f897
Use create_stream in generic camera config flow ()
* Use create_stream in generic camera config flow
2022-06-11 15:38:43 +10:00
Dave T
ce477e65ce
Render template during stream_url test for generic camera () 2022-05-25 09:02:48 +02:00
uvjustin
32b3ce5727
Clean up use_wallclock_as_timestamps in generic () 2022-05-16 09:06:54 -07:00
uvjustin
221b77297e
Declare exports from stream explicitly () 2022-05-15 17:58:57 +02:00
uvjustin
617b0d04dc
Decouple stream options from PyAV options ()
Co-authored-by: Allen Porter <allen.porter@gmail.com>
2022-05-14 23:31:18 -07:00
uvjustin
7e49ae6410
Add use_wallclock_as_timestamps option to generic ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-05-12 16:43:24 -07:00
Dave T
26c6328b1f
Generic camera handle template adjacent to portnumber () 2022-05-01 16:13:21 -07:00
Dave T
2c028d203f
Remove invalid unique id from generic camera ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-27 17:08:18 -05:00
Dave T
d69a7e7be9
Hide credentials from generated titles in generic camera () 2022-04-18 07:57:52 -07:00
Dave T
32f9aefb40
Auto set content type for stream-only in generic camera () 2022-04-17 22:28:25 -07:00
Diogo Gomes
d57863946d
Don't allow <= 0 Hz frame rates in Generic Camera () 2022-04-13 00:00:55 +02:00
Dave T
6d17f4ffff
Support webp still image format in generic camera () 2022-04-08 23:06:34 -07:00
Dave T
6fd041b290
Don't test config on yaml import for generic camera () 2022-04-08 22:59:54 -07:00
Dave T
be8e28503c
Generic fix stream thumbnail () 2022-04-07 15:01:29 -07:00
Dave T
c6bba19e05
Continue on template error during yaml import for generic ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-04-06 15:49:59 -07:00
Dave T
a741b26e28
Improve image checks for generic camera () 2022-03-31 15:05:39 -07:00
Dave T
7a5235dc0c
Generic camera: Allow gif image type in still image checker () 2022-03-30 21:02:43 -10:00
Dave T
3244980a35
Generic camera: Allow svg detect to accept leading whitespace () 2022-03-31 00:45:55 +02:00
Dave T
c1a2be72fc
Generic IP Camera configflow 2 ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-28 09:08:00 -10:00