Commit Graph
396 Commits
Author SHA1 Message Date
J. Nick Koston 74c518ce79 lint 2023-05-20 14:16:55 -05:00
J. Nick KostonandJan Bouwhuis d5c88dd4f5 Update homeassistant/components/http/__init__.py
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2023-05-20 10:22:27 -05:00
J. Nick KostonandJan Bouwhuis bf18897b0f Update homeassistant/components/http/__init__.py
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2023-05-20 10:22:22 -05:00
J. Nick KostonandJan Bouwhuis a3cf66c98c Update homeassistant/components/http/__init__.py
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2023-05-20 10:22:16 -05:00
J. Nick Koston 84aeaf7960 lint 2023-05-19 17:08:25 -05:00
J. Nick Koston 2a8a1bdc62 nicer message 2023-05-19 16:53:36 -05:00
J. Nick Koston 240f0cc490 moved 2023-05-19 16:43:36 -05:00
J. Nick Koston 82a4036965 moved 2023-05-19 16:40:18 -05:00
J. Nick Koston b5220c4149 dep 2023-05-19 16:33:43 -05:00
J. Nick Koston 775dcebeb9 Revert "back compat"
This reverts commit 10bf6db3a2.
2023-05-19 15:41:45 -05:00
J. Nick Koston 10bf6db3a2 back compat 2023-05-19 15:29:29 -05:00
J. Nick Koston e7c95ee088 fixes 2023-05-19 15:24:55 -05:00
J. Nick Koston c34aa0e23b fix test 2023-05-19 14:12:42 -05:00
J. Nick Koston 2820a63f9f debug 2023-05-19 13:59:05 -05:00
J. Nick Koston 11a2e30d22 debug 2023-05-19 13:58:40 -05:00
J. Nick Koston 64424f672c back compat 2023-05-19 13:43:41 -05:00
J. Nick Koston 0652dda106 coverage 2023-05-19 13:34:04 -05:00
J. Nick Koston 5c3a76053d tweak 2023-05-19 13:28:34 -05:00
J. Nick Koston 00e784d0c4 adjust 2023-05-19 13:24:21 -05:00
J. Nick Koston cb06b5af78 Support multiple sites on the webserver
aiohttp already supports multiple TCPSites for a single server

This allows Home Assistant to listen on multiple ports with
different ssl configuration per port so that devices that
need a less secure configuration can be isolated to a single
port
2023-05-19 13:06:10 -05:00
J. Nick Koston d8fa06de67 Support multiple sites on the webserver
aiohttp already supports multiple TCPSites for a single server

This allows Home Assistant to listen on multiple ports with
different ssl configuration per port so that devices that
need a less secure configuration can be isolated to a single
port.

The motivation for this is that I did not want to downgrade
my entire ssl configuration for a single device that needs
a less secure configuration, or to support an ONVIF camera
that does not do SSL
2023-05-19 13:01:53 -05:00
J. Nick Koston 3f43184187 Speed up signing paths (#93127) 2023-05-17 22:01:13 +02:00
Erik Montnemery 043812bfc3 Bump hass-nabucasa to 0.67.1 (#92484)
* Bump hass-nabucasa to 0.67.1

* Fix typing
2023-05-08 10:51:47 +02:00
Franck Nijhof b033232b06 Filter out ASCII tab or newline from input URLs (#90348) 2023-03-27 13:49:40 -04:00
J. Nick Koston 72b09bfee7 Subclass aiohttp requests to use json helper (#90214)
* Subclass aiohttp requests to use json helper

* Subclass aiohttp requests to use json helper

* remove unneeded

* revert for new pr

* override loads is never used so drop it

* override loads is never used so drop it
2023-03-24 15:37:43 -04:00
J. Nick Koston dd0f05b980 Avoid calling the http access logging when logging is disabled (#90152) 2023-03-23 09:55:02 -10:00
Paulus Schoutsen 12352b2ce1 Always enforce URL param ordering for signed URLs (#90148)
Always enforce URL param ordering
2023-03-22 22:54:09 -04:00
J. Nick Koston ca576d45ac Cache decode of JWT tokens (#90013) 2023-03-22 16:03:41 -10:00
Marc Mueller 386533a16f Update mypy to 1.1.1 (#89268)
* Update mypy to 1.1.1
* Update pydantic to 1.10.6
2023-03-08 22:57:54 +01:00
Franck Nijhof 95ed6fbc08 Small improvements to middleware filter (#88921)
Small improvements middleware filter
2023-02-28 12:07:17 -05:00
epenet ba23816a0c Inverse json import logic (#88099)
* Fix helpers and util

* Adjust components

* Move back errors

* Add report

* mypy

* mypy

* Assert deprecation messages

* Move test_json_loads_object

* Adjust tests

* Fix rebase

* Adjust pylint plugin

* Fix plugin

* Adjust references

* Adjust backup tests
2023-02-16 11:37:57 +01:00
Erik Montnemery 899adef590 Sort manifests 4 (#87025) 2023-02-08 20:27:05 +01:00
Franck Nijhof ca1a12898c Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
Paulus Schoutsen 9c0856787d Improve JSON errors from HTTP view (#87042) 2023-01-31 20:37:26 +01:00
Franck Nijhof d4955a3d87 Replace assert False by raising an error (#86686) 2023-01-26 16:51:43 +01:00
Marc Mueller 8abce25948 Update Union typing (4) [Py310] (#86427) 2023-01-23 09:04:40 +01:00
Marc Mueller 45b4b0e990 Import ParamSpec from typing [Py310] (#86413)
* Import ParamSpec from typing [Py310]

* Update additional imports
2023-01-23 07:28:43 +01:00
Franck Nijhof 79b52a2b41 Stricter pylint message control (#86154) 2023-01-20 13:47:55 +01:00
Mike Degatano 87aacf9fbe Increase max line size for ingress addons (#85775) 2023-01-13 13:30:28 +01:00
Franck Nijhof cb13418bab String formatting and max line length - Part 2 (#84393) 2022-12-22 11:38:59 +01:00
Joakim Plate 8bd4125390 Test corrections noticed during pytest upgrade (#82579)
* Withing trigger a call to coordinator after init

* Stop discovery task on STOP event

* Stop dsmr connection task on STOP

* Use autospec in modem_serial tests

close on AioSerial is non async, and should not be mocked as a coroutine

* Make sure responder is specced correctly

tests/components/emulated_hue/test_init.py::test_setup_works
  /Users/joakim/src/hass/home-assistant/homeassistant/components/emulated_hue/__init__.py:119: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
    protocol.close()

* Don't assume Pymodbus is the only thing logging

* Use gather instead of wait

```
homeassistant/components/homeassistant/__init__.py:208: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11.
```

* Increase wait time for automation tests

Assuming exit within 1 seconds is unreasonable on a potentially loaded
test machine.

* Avoid changing app state after startup
2022-11-23 20:53:28 +01:00
Franck Nijhof 2b27cfdabb Set system & entity integration types (#79593) 2022-10-04 10:36:42 -04:00
epenet 454bdcc00d Expose http constants in root (#78267) 2022-09-12 18:41:18 +02:00
Franck Nijhof 91180923ae Fix HTTP 404 being logged as a stack trace (#75861) 2022-07-28 16:43:32 +02:00
Marc Mueller af7df260a0 Fix small type issues [core] (#75760) 2022-07-26 16:28:22 +02:00
Marc Mueller b1ed1543c8 Improve http decorator typing (#75541) 2022-07-21 13:07:42 +02:00
Franck Nijhof 9a4a7e2f4d Extend failed login message with the request URL (#75218) 2022-07-14 21:43:14 +02:00
epenet 16900dcef1 Make Store a generic class (#74617) 2022-07-09 22:32:57 +02:00
J. Nick Koston 0c29b68cf8 Switch linear search to a dict lookup for ip bans (#74482) 2022-07-07 10:57:44 +02:00
J. Nick Koston 332cf3cd2d Resolve and caches paths for CachingStaticResource in the executor (#74474) 2022-07-06 13:49:48 -05:00