Commit graph

57 commits

Author SHA1 Message Date
epenet
2699eb62bd
Rename DOMAIN_DATA HassKey constants to DATA_COMPONENT (#126746)
* Rename DOMAIN_DATA HassKey constant to DATA

* DATA -> DATA_COMPONENT
2024-09-25 15:53:58 +02:00
Nicholas Pike
691b2879bd
Fix image content-type validation case sensitivity (#125236) 2024-09-23 14:33:29 +02:00
epenet
32f02aa3c6
Use HassKey in image (#126322) 2024-09-21 13:13:41 +02:00
epenet
4afc472068
Use root import for media_player and media_source (#125828)
* Use root import for media_player and media_source

* One more
2024-09-12 15:38:53 +02:00
epenet
f65d91f6d2
Refactor PLATFORM_SCHEMA imports in platforms (#120564) 2024-06-26 15:44:59 +02:00
Sid
0d66d298ec
Enable Ruff RET504 (#114528)
* Enable Ruff RET504

* fix test

* Use noqa instead of cast

* fix sonos RET504

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00
Marc Mueller
0f03079065
Update import for EventStateChangedData [i-z] (#114900) 2024-04-04 11:48:29 -10:00
Marc Mueller
816ce116bf
Remove unnecessary functools.cached_property backport (#114239) 2024-04-04 11:24:26 +02:00
Sid
6587ee20db
Enable Ruff TRY300 (#114437)
* Enable Ruff TRY300

* Update validation.py

* Address review comments
2024-03-30 10:37:59 +01:00
Marc Mueller
81c34ac952
Fix spelling [docstrings + comments] (#114168) 2024-03-25 11:33:00 +01:00
Sid
82a60fe8ad
Enable Ruff RSE (#113695) 2024-03-18 00:40:38 +01:00
Sid
6ee273a548
Clean up unneeded ruff noqa directives (#113616) 2024-03-16 09:48:37 -10:00
On Freund
b644c03fa7
Send keep-alive frames in image proxy stream (#113542) 2024-03-15 14:00:33 -10:00
J. Nick Koston
d0d1af8991
Improve performance of image streams (#112810) 2024-03-09 10:26:48 -10:00
Marc Mueller
cef20506dc
Replace EventType with Event [missing] (#112753) 2024-03-08 21:56:42 +01:00
Marc Mueller
8809d3aa88
Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
Marc Mueller
8ca127df2a
Use KEY_HASS [h-z] (#112610) 2024-03-07 18:03:44 +01:00
On Freund
979fe57f7f
Image entity media source (#104743)
* Image entity media source

* MJPEG streaming

* Update on change rather than fixed interval

* Only send boundary twice

* return when image has no data

* Write each frame twice

* Use friendly name when browsing

* Fix sending of double frame

* Initial image proxy test

* Improve proxy stream test

* Refactor

* Code review fixes
2024-02-26 19:04:25 +01:00
Marc Mueller
7a89e58873
Use builtin TimeoutError [e-i] (#109679) 2024-02-05 12:00:37 +01:00
Franck Nijhof
a9723df96c
Add image icon translations (#108455) 2024-01-20 11:05:53 +01:00
J. Nick Koston
85e9bc6f5a
Add support for attribute caching to the image platform (#106333) 2023-12-23 14:27:14 -10:00
Erik Montnemery
104bcc64b7
Allow inheriting base component entity descriptions in frozen dataclasses (#105512)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-15 23:33:50 -10:00
Erik Montnemery
df73850f56
Move definition of attributes excluded from history to entity classes (#100430)
* Move definition of attributes excluded from history to entity classes

* Revert change which should be in a follow-up PR

* Fix sun unrecorded attributes

* Fix input_select unrecorded attributes
2023-09-21 15:02:47 +02:00
Marc Mueller
71d985e4d6
Use asyncio.timeout [i-n] (#98450) 2023-08-15 14:32:15 +02:00
RenierM26
c54ceb2da2
ImageEntity split load_image_from_url (#96146)
* Initial commit

* fix async_load_image_from_url
2023-07-13 17:03:26 +02:00
Erik Montnemery
190d67b56c
Improve content type handling in ImageEntity (#95365) 2023-06-27 15:28:49 +02:00
Erik Montnemery
723f6d35b0
Address late review comments on image entity URL support (#95338) 2023-06-27 13:22:59 +02:00
Erik Montnemery
90c1263501
Adjust image entity URL support (#95330) 2023-06-27 11:59:24 +02:00
Jan Bouwhuis
22f29e8c84
Add validation of content_type to image entity (#95248) 2023-06-27 11:46:31 +02:00
Jan Bouwhuis
98cc45ec10
Add image url support (#95301)
* Add image url support

* Use hass as parameter

* Add verify ssl parameter and improve exception handling

* Improve error handling, ignore empty URL's

* Update existing image platforms

---------

Co-authored-by: Erik <erik@montnemery.com>
2023-06-27 08:36:12 +02:00
Erik Montnemery
8e2ba81995
Add image platform to the template integration (#94928)
* Add image platform to the template integration

* Set a default name

* Fix typo

* Add tests

* Improve test coverage

* Derive content-type from fetched image
2023-06-26 15:54:51 +02:00
Erik Montnemery
5303bef83e
Add image entity component (#90564) 2023-06-19 17:03:48 +02:00
Franck Nijhof
80b3572627
Rename image integration to image_upload (#84063)
* Rename image integration to image_upload

* fix test
2022-12-16 08:16:38 -05:00
Aarni Koskela
5a6f7e66cb
Refactor + strictly-type image component (#81808)
* image: refactor size validation to use partition

* image: give _generate_thumbnail types and use partition

* image: become strictly typed
2022-11-09 15:36:03 +01:00
Franck Nijhof
e22f69ea8c
Update Pillow to 9.3.0 (#81343) 2022-11-01 11:34:44 +02:00
Franck Nijhof
2b27cfdabb
Set system & entity integration types (#79593) 2022-10-04 10:36:42 -04:00
Franck Nijhof
b5387ed769
Update Pillow to 9.2.0 (#74371) 2022-07-04 13:16:01 +02:00
Franck Nijhof
53d7eaa1a6
Update Pillow to 9.1.1 (#72376) 2022-05-23 20:50:39 +02:00
Franck Nijhof
0969e50553
Update Pillow to 9.1.0 (#70273) 2022-04-19 12:49:43 +02:00
Franck Nijhof
58409d0895
Update Pillow to 9.0.1 (#65779) 2022-02-05 14:19:24 +01:00
Franck Nijhof
1c29260a31
Update Pillow to 9.0.0 (#63894) 2022-01-11 14:28:48 +01:00
Martin Hjelmare
a818afdad1
Revert pillow 8.3.2 (#61793)
* Revert "Bump pillow from 8.2.0 to 8.3.2 (#61661)"

This reverts commit 3635946211.

* Add comment

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Fix comment

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2021-12-15 03:10:06 +01:00
Sebastian Nohn
3635946211
Bump pillow from 8.2.0 to 8.3.2 (#61661)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-13 14:14:05 +01:00
Joakim Sørensen
c59540cfc7
Revert "Bump pillow to 8.3.2 (#55970)" (#56048)
This reverts commit ee7202d10a.
2021-09-10 17:01:51 +02:00
Paulus Schoutsen
ee7202d10a
Bump pillow to 8.3.2 (#55970) 2021-09-08 12:06:30 -07:00
Ville Skyttä
939fde0a50
ConfigType and async_setup/setup type hint improvements (#54739) 2021-08-18 13:22:05 +02:00
Franck Nijhof
37af42e470
Upgrade pillow to 8.2.0 (#51897) 2021-06-15 19:14:57 +02:00
Michael
b1138b1aab
Add constructor return type in integrations E-K (#50902) 2021-05-20 18:47:30 +03:00
Marc Mueller
283b4abe67
Update typing 09 (#48059) 2021-03-18 10:02:00 +01:00
Franck Nijhof
197687399d
Upgrade pillow to 8.1.2 (#47619) 2021-03-08 14:26:52 +01:00