Commit graph

44 commits

Author SHA1 Message Date
J. Nick Koston
57f4f061a6
Use identity check in hassio websocket ingress (#109672) 2024-02-05 08:55:19 +01:00
Marc Mueller
a6fc4c2bd5
Improve hassio typing (#107292) 2024-01-08 10:08:09 +01:00
J. Nick Koston
c2cc8014dc
Avoid double URL creation for hassio ingress (#105052) 2023-12-05 09:29:43 +01:00
J. Nick Koston
dfed10420c
Remove aiohttp enable_compression helper (#104174) 2023-11-29 10:24:34 -07:00
J. Nick Koston
608f4f7c52
Bump aiohttp to 3.9.1 (#104176) 2023-11-29 16:13:54 +01:00
J. Nick Koston
0d63e2f9b5
Ensure large payloads are compressed in the executor with aiohttp 3.9.0 (#103592) 2023-11-07 12:37:54 -06:00
J. Nick Koston
408e977b17
Try to avoid re-parsing the content-type in hassio ingress if possible (#103477)
Co-authored-by: Stefan Agner <stefan@agner.ch>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-06 20:48:47 +01:00
J. Nick Koston
36e1c740fd
Fix ingress sending an empty body for GET requests (#101917) 2023-10-15 23:38:20 +02:00
J. Nick Koston
683046272d
Switch hassio to use iter_chunks (#102031) 2023-10-15 21:48:04 +02:00
J. Nick Koston
62c5194bc8
Avoid compressing binary images on ingress (#96581) 2023-07-15 00:09:25 -10:00
J. Nick Koston
2b4f6ffcd6
Speed up hassio ingress (#95777) 2023-07-08 10:50:39 +02:00
J. Nick Koston
2bfa521068
Fix hassio with python3.11 (#92178) 2023-04-28 15:38:32 +02:00
Franck Nijhof
feb3f543be
Improve Supervisor API handling (#89379) 2023-03-08 15:21:11 +01:00
Sergio Oller
9733d31cd0
Do not add a Content-Type header to ingress (#83425) 2022-12-13 08:50:20 +01:00
epenet
6540ba6239
Remove hassio from mypy ignore list (#74603)
* Remove hassio from mypy ignore list

* Avoid if TYPE_CHECKING
2022-07-07 15:14:36 +02:00
Pascal Vizeli
eac7c5f177
Remove deprecated X-Hassio-Key usage (#73783)
* Remove deprecated X-Hassio-Key usage

* ...

* Update const.py

* Update ingress.py

* Update test_ingress.py

Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
2022-06-21 17:11:20 +02:00
Joakim Sørensen
3a0111e65d
Use supervisor envs instead of hassio (#72601) 2022-05-30 12:00:13 +02:00
Paulus Schoutsen
3daaed1056
Catch connection reset error (#65027) 2022-01-27 11:02:27 +01:00
Franck Nijhof
20bdcc7fff
Replace hass.helpers: async_get_clientsession() (#63910) 2022-01-11 17:33:50 +01:00
Christopher Masto
32933b2c6b
Work around ingress glitch with 304 responses (#63355)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-04 14:04:43 -08:00
david reid
95f0098593
Catch ConnectionResetError (#60987) 2021-12-05 09:50:15 -08:00
Marc Mueller
ff853b2d53
Use assignment expressions 19 (#57968) 2021-10-18 15:54:38 +02:00
Joakim Sørensen
519efd2723
Handle missing peername (#53052)
* Handle missing peername

* Add test
2021-07-15 14:16:30 +02:00
Joakim Sørensen
328ab21a05
Stream requests to ingress (#52184) 2021-06-25 12:14:26 -07:00
Michael
b1138b1aab
Add constructor return type in integrations E-K (#50902) 2021-05-20 18:47:30 +03:00
jan iversen
d168749a51
Integrations: HomeAssistantType --> HomeAssistant. Last batch. (#49591) 2021-04-23 10:34:02 +02:00
Marc Mueller
5cdd945f44
Update typing 08 (#48058) 2021-03-18 09:25:40 +01:00
Bas Nijholt
00dc721609 sort imports according to PEP8 for hassio (#29634) 2019-12-08 16:33:22 +01:00
Pascal Vizeli
c00b058e53
Cleanup not needed websocket flags for ingress (#28295) 2019-10-29 12:05:05 +01:00
Pascal Vizeli
335872b54d
Revert "More header cleanup for websocket proxy (#28288)" (#28293)
This reverts commit 7887850505.
2019-10-28 16:54:15 +01:00
Pascal Vizeli
7887850505
More header cleanup for websocket proxy (#28288) 2019-10-28 14:34:13 +01:00
Franck Nijhof
decf13b948 Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Pascal Vizeli
261f3bcba6
Don't follow redirect on ingress itself (#24218)
* Don't follow redirect on ingress itself

* Fix comment
2019-05-31 14:30:58 +02:00
Pascal Vizeli
3e443d253c
Hass.io Add-on panel support for Ingress (#23185)
* Hass.io Add-on panel support for Ingress

* Revert part of discovery startup handling

* Add type

* Fix tests

* Add tests

* Fix lint

* Fix lint on test
2019-04-19 09:43:47 +02:00
Pascal Vizeli
7a78d65633 Fix ingress bug with Firefox (#23121)
* Fix ingress bug with Firefox

* Fix mock

* Fix tests

* Fix test lint
2019-04-15 15:27:13 -07:00
Pascal Vizeli
37f3eccb1e Bugfix: pass protocol out of header to application layer (#22955) 2019-04-09 20:13:39 -07:00
Pascal Vizeli
2d287d2abe
Fix content_type handling ingress (#22864) 2019-04-08 09:22:55 +02:00
Pascal Vizeli
4b877dd96f
Cleanup cookie handling (#22757) 2019-04-05 13:29:43 +02:00
Pascal Vizeli
71e120ce97 Fix chunk streaming (#22730)
* Fix chunk streaming

* Cleanup a print

* Better error handling

* Fix import order
2019-04-04 23:41:13 -07:00
Pascal Vizeli
9bb88a6143
Fix ingress routing with / (#22728) 2019-04-04 17:43:18 +02:00
Pascal Vizeli
beb6ddfa68
Change URL handling (#22713) 2019-04-04 11:10:44 +02:00
Pascal Vizeli
e708032669 Support GET params for websocket ingress path (#22638) 2019-04-01 17:41:08 -07:00
Pascal Vizeli
6829ecad9d
Hass.io ingress (#22505)
* Fix API stream of snapshot / Add ingress

* fix lint

* Fix stream handling

* Cleanup api handling

* fix typing

* Set proxy header

* Use header constant

* Enable the ingress setup

* fix lint

* Fix name

* Fix tests

* fix lint

* forward params

* Add tests for ingress

* Cleanup cookie handling with aiohttp 3.5

* Add more tests

* Fix tests

* Fix lint

* Fix header handling for steam

* forward header too

* fix lint

* fix flake
2019-04-01 14:16:16 +02:00