Commit graph

246 commits

Author SHA1 Message Date
Franck Nijhof
c7da781efc Update documentation link URL for integrations in all manifests () 2019-10-02 09:25:44 -07:00
Ville Skyttä
fde128d66c
Upgrade mypy to 0.730, address raised issues ()
https://mypy-lang.blogspot.com/2019/09/mypy-730-released.html
2019-09-27 22:57:59 +03:00
Ville Skyttä
54242cd65c Type hint additions () 2019-09-20 08:23:34 -07:00
Franck Nijhof
decf13b948 Use literal string interpolation in core (f-strings) () 2019-08-23 09:53:33 -07:00
Ville Skyttä
b738082dad Type check various base components ()
* 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
57f84cbbaa Update HTTP defaults ()
* Update HTTP defaults

* Fix tests
2019-08-05 08:24:54 +02:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
297cd3dc13
Fix deprecation warning in test () 2019-07-26 17:40:40 -07:00
Paulus Schoutsen
fae3546910 Allow cors for static files () 2019-07-25 13:52:27 +02:00
Franck Nijhof
31f569ada9 Batch of Component(s) -> Integration(s) () 2019-07-05 15:24:26 -07:00
Paulus Schoutsen
f77514c6f2
Check cloud trusted proxies () 2019-06-07 23:08:55 -07:00
Paulus Schoutsen
6f903db8c4
Fix cors on the index view () 2019-06-03 11:43:13 -07:00
Paulus Schoutsen
e356d0bcda
Better handle file not found when loading YAML ()
* Better handle file not found

* Lint
2019-05-19 12:01:29 +02:00
Pascal Vizeli
7a78d65633 Fix ingress bug with Firefox ()
* Fix ingress bug with Firefox

* Fix mock

* Fix tests

* Fix test lint
2019-04-15 15:27:13 -07:00
cgtobi
2c07bfb9e0 Remove dependencies and requirements ()
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2c.

* Remove dependencies and requirements

* Fix flake8 complaints

* Fix more flake8 complaints

* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
cfe4cf30ad
Add manifests ()
* Add manifests

* Update auto name

* Update codeowners

* Add requirements from platforms

* Minor cleanup

* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Jason Hu
6a411710df Fix trusted networks auth provider warning message ()
* Fix trusted networks auth provider warning message

* Update auth.py
2019-04-02 21:23:59 -07:00
Jason Hu
39eaa7fc8d Add trusted networks deprecating warning ()
* Add trusted networks deprecating warning

* Update auth.py

* Update auth.py

* Update auth.py

* Update auth.py

* Tweak
2019-04-01 17:43:29 -07:00
Thomas Lovén
19d99ddf57 Lower severity level of log messages from http.view () 2019-03-26 19:18:32 -04:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ()
* Use relative imports inside integrations

* Lint

* Fix automation tests

* Fix scene imports
2019-03-20 22:56:46 -07:00
Jason Hu
fe1840f901 Deprecate http.api_password ()
* Deprecated http.api_password

* Deprecated ApiConfig.api_password

GitHub Drafted PR would trigger CI after changed it to normal PR.
I have to commit a comment change to trigger it

* Trigger CI

* Adjust if- elif chain in auth middleware
2019-03-10 19:55:36 -07:00
Paul Bottein
4d9cf15c45 Fix authorization header in cors ()
* Fix authorization headers in cors

* Use aiohttp authorization header instead of custom const
2019-03-09 10:00:10 -08:00
Jason Hu
bbd01968ba Override http.trusted_networks by auth_provider.trusted_networks () 2019-03-08 23:56:37 -08:00
Jason Hu
b18b1cffff Fix warning () 2019-02-28 10:10:21 -08:00
Jason Hu
7bae76843c Add config for trusted networks auth provider ()
* Add config for trusted networks auth provider

* Lint

* Fix typing

* Fix pylint

* Fix lint

* Add some log information

* Add http.trusted_networks deprecated warning

* Remove log info

* Lint
2019-02-26 14:42:48 -08:00
Jason Hu
2155a861cd Remove outdated url pattern match support for static file hosting () 2019-02-16 23:06:42 -08:00
Jason Hu
46efc0eafb Refactor http CachingStaticResource ()
* 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
Fabian Affolter
3736120c6a
Update file header ()
* Update file header

* Fix lint issue

* Fix lint issue
2019-02-14 16:01:46 +01:00
Paulus Schoutsen
47f60e6cf2 Remove fingerprint middleware ()
* Remove fingerprint middleware

* Lint
2019-02-02 11:52:34 +01:00
Louis Matthijssen
d39784906b Fix HTTP login attempts check triggering too late () 2019-01-26 03:13:44 +01:00
Andrew Sayre
bb21cb6c89 Remove trailing slash from base_url and added ability to generate webhook path. () 2019-01-21 20:50:41 +01:00
Jason Hu
97394df0b9
Only authenticate request when owner can be found 2019-01-11 00:26:25 -08:00
Paulus Schoutsen
d1a621601d No more opt-out auth ()
* No more opt-out auth

* Fix var
2018-12-02 16:32:53 +01:00
Paulus Schoutsen
df21dd21f2 RFC: Call services directly ()
* Call services directly

* Simplify

* Type

* Lint

* Update name

* Fix tests

* Catch exceptions in HTTP view

* Lint

* Handle ServiceNotFound in API endpoints that call services

* Type

* Don't crash recorder on non-JSON serializable objects
2018-11-30 21:28:35 +01:00
Paulus Schoutsen
d014517ce2
Always set hass_user () 2018-11-30 17:32:47 +01:00
Paulus Schoutsen
a2386f871d Forbid float NaN in JSON () 2018-11-28 13:25:23 +01:00
Paulus Schoutsen
c2f8dfcb9f
Legacy api fix ()
* Set user for API password requests

* Fix tests

* Fix typing
2018-11-27 10:41:44 +01:00
Paulus Schoutsen
8b8629a5f4 Add permission checks to Rest API ()
* Add permission checks to Rest API

* Clean up unnecessary method

* Remove all the tuple stuff from entity check

* Simplify perms

* Correct param name for owner permission

* Hass.io make/update user to be admin

* Types
2018-11-25 18:04:48 +01:00
Paulus Schoutsen
1341ecd2eb
Use proper signals ()
* Emulated Hue not use deprecated handler

* Remove no longer needed workaround

* Add middleware directly

* Dont always load the ban config file

* Update homeassistant/components/http/ban.py

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update __init__.py
2018-11-21 20:55:21 +01:00
Paulus Schoutsen
312d49caec Allow creating signed urls ()
* Allow creating signed urls

* Fix parameter

* Lint
2018-10-25 16:44:57 +02:00
Paulus Schoutsen
2e6346ca43 Break up websocket 2 ()
* Break up websocket 2

* Lint+Test

* Lintttt

* Rename
2018-10-01 16:09:31 +02:00
Jerad Meisner
50fb59477a Store notifications in component. Add ws endpoint for fetching. ()
* Store notifications in component. Add ws endpoint for fetching.

* Comments
2018-09-11 11:39:30 +02:00
Paulus Schoutsen
376d4e4fa0
Warning missed a space () 2018-08-28 09:32:50 +02:00
Paulus Schoutsen
9d491f5322 Change auth warning () 2018-08-27 10:37:03 +02:00
Jason Hu
24a8d60566 Tweak log level for bearer token warning () 2018-08-25 07:57:36 +02:00
Ville Skyttä
dd9d53c83e Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 ()
* Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0

* Pydocstyle D401 fixes
2018-08-24 10:28:43 +02:00
Paulus Schoutsen
7bb5344942
Remove homeassistant.remote ()
* Remove homeassistant.remote

* Use direct import for API

* Fix docstring
2018-08-21 15:49:58 +02:00
Paulus Schoutsen
121abb450a Use aiohttp web.AppRunner ()
* Use aiohttp web.AppRunner

* Stop site
2018-08-20 14:03:35 +02:00
Ville Skyttä
dbd0763f83 Grammar and spelling fixes () 2018-08-19 22:29:08 +02:00
Paulus Schoutsen
e776f88eec
Use JWT for access tokens ()
* Use JWT for access tokens

* Update requirements

* Improvements
2018-08-14 21:14:12 +02:00