Ruslan Sayfutdinov
ce15f28642
Add missing type hints in http component ( #50411 )
2021-05-10 14:30:47 -07:00
springstan
04722fdd63
Move imports to top for http ( #29500 )
2019-12-05 13:42:09 +01:00
Ville Skyttä
99c7608fb4
Lint config cleanups ( #28864 )
...
* Remove bunch of unneeded lint exclusions
* Use symbolic names instead of identifiers in pylint disables
* Tighten scope of some pylint disables
2019-11-25 22:40:08 -08:00
Ville Skyttä
fde128d66c
Upgrade mypy to 0.730, address raised issues ( #26959 )
...
https://mypy-lang.blogspot.com/2019/09/mypy-730-released.html
2019-09-27 22:57:59 +03:00
Franck Nijhof
decf13b948
Use literal string interpolation in core (f-strings) ( #26166 )
2019-08-23 09:53:33 -07:00
Ville Skyttä
b738082dad
Type check various base components ( #25878 )
...
* Type check various component base classes, disabling bunch of checks for now
* Type hint fixes
* Help mypy out some
* Add more type hints
2019-08-11 20:38:18 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Jason Hu
46efc0eafb
Refactor http CachingStaticResource ( #21062 )
...
* Simplify http.CachingStaticResource implementation
* Sync up CachingStaticResource._handle() implementation from aiohttp
* Ignore pylint duplicate-base warning
* Try to disable pylint for http/static.py
Caused by https://github.com/PyCQA/astroid/issues/633#issuecomment-463879288
* Remove pylint ignore
* Ignore pylint duplicate-base warning
2019-02-15 09:31:54 -08:00
Paulus Schoutsen
47f60e6cf2
Remove fingerprint middleware ( #20682 )
...
* Remove fingerprint middleware
* Lint
2019-02-02 11:52:34 +01:00
Ville Skyttä
b7c336a687
Pylint cleanups ( #15626 )
...
* Pylint 2 no-else-return fixes
* Remove unneeded abstract-class-not-used pylint disable
2018-07-23 10:16:05 +02:00
Ville Skyttä
b92350fb55
Lint cleanup ( #15103 )
...
* Remove unneeded inline pylint disables
* Remove unneeded noqa's
* Use symbol names instead of message ids in inline pylint disables
2018-06-25 13:05:07 -04:00
Boyi C
321eb2ec6f
Move HomeAssistantView to separate file. Convert http to async syntax. [skip ci] ( #12982 )
...
* Move HomeAssistantView to separate file. Convert http to async syntax.
* pylint
* websocket api
* update emulated_hue for async/await
* Lint
2018-03-08 17:51:49 -08:00
Paulus Schoutsen
6a5c7ef43f
Upgrade to aiohttp 3 ( #12921 )
...
* Upgrade aiohttp to 3.0.6
* Fix tests
* Fix aiohttp client stream test
* Lint
* Remove drain
2018-03-05 13:28:41 -08:00
Pascal Vizeli
e4874fd7c7
Update aiohttp 2.3.10 / yarl 1.1.0 ( #12244 )
...
* Update aiohttp 2.3.10 / yarl 1.1.0
* Update setup.py
* Update package_constraints.txt
* Update google.py
* Update static.py
2018-02-08 20:57:05 -08:00
Phil Elson
40af9f2676
Correct use of middleware async handling. ( #12078 )
2018-01-31 09:04:32 -08:00
Andrey
5e92fa3404
Add an option to serve ES6 JS to clients ( #10474 )
...
* Add an option to serve ES6 JS to clients
* Rename es6 to latest
* Fixes
* Serve JS vrsions from separate dirs
* Revert websocket API change
* Update frontend to 20171110.0
* websocket: move request to constructor
2017-11-10 23:02:06 -08:00
Pascal Vizeli
a9a3e24bde
Update aiohttp to 2.3.1 ( #10139 )
...
* Update aiohttp to 2.3.1
* set timeout 10sec
* fix freeze with new middleware handling
* Convert middleware auth
* Convert mittleware ipban
* convert middleware static
* fix lint
* Update ban.py
* Update auth.py
* fix lint
* Fix tests
2017-11-05 18:42:31 -08:00
Paulus Schoutsen
4dc9ac820f
Remove http.development ( #10267 )
...
* Remove http.development
* Remove development
* Remove development from tests
* Remove constant
2017-11-01 13:07:16 +01:00
Paulus Schoutsen
714b516176
aiohttp 2 ( #6835 )
...
* Upgrade aiohttp2
* Fix resource caching
* Fix helpers.aiohttp_client
* Lint
* Use static path for api error_log
* Fix ClientErrors import
* Remove not needed DisconnectError
* Remove releasing responses code
* Add timeout if stream starts non responding
* More async_aiohttp_proxy_stream cleanup
* Fix references to ClientError
* Fix fingerprinting
* Fix aiohttp stream tests
* Rename aiohttp_proxy_stream
* Remove impossible darksky test
* Fix sleepiq requests escaping mocker
* Lint
* Remove deprecated parameter
* Break up aiohttp_proxy_stream in 2 methods
* Lint
* Upgrade to aiohttp 2.0.4
* Convert connector close to a callback
* Fix static fingerprinted links
2017-03-30 00:50:53 -07:00
Paulus Schoutsen
e68e29e03e
Upgrade to aiohttp 1.2 ( #4964 )
...
* Upgrade to aiohttp 1.2
* Clean up emulated_hue tests
2017-01-11 21:25:02 +01:00
Adam Mills
c40ddf18c7
Fix incorrect caching of /api/error_log ( #4789 )
2016-12-06 21:03:49 -08:00
Paulus Schoutsen
32ffd006fa
Reorganize HTTP component ( #4575 )
...
* Move HTTP to own folder
* Break HTTP into middlewares
* Lint
* Split tests per middleware
* Clean up HTTP tests
* Make HomeAssistantViews more stateless
* Lint
* Make HTTP setup async
2016-11-25 13:04:06 -08:00