Commit Graph

98 Commits (b273c37d2b93d39d47868781d232ac5ef4c552e7)

Author SHA1 Message Date
Paulus Schoutsen 2af984917e
Use asynctest-mock in most places ()
* Use asynctest-mock in most places

* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Paulus Schoutsen ec47216388
Use built-in test helpers on 3.8 () 2020-04-30 13:29:50 -07:00
Paulus Schoutsen 0d700f6a63
Fix tests for Python 3.8 () 2020-04-25 14:32:55 -07:00
springstan fb8f8133a0
Use HTTP_INTERNAL_SERVER_ERROR constant () 2020-04-08 23:20:03 +02:00
Franck Nijhof d7e9959442
String formatting improvements for tests (2) () 2020-04-05 00:33:07 +02:00
Franck Nijhof 431a3a6b44
Re-branding of Hass.io panel to Supervisor () 2020-02-05 11:04:17 +01:00
Joakim Sørensen a5a69bdf71 Adds icon endpoint to NO_AUTH ()
* Adds icon endpoint to NO_AUTH

* Add test for no_auth icon get

* Blackout
2020-01-17 13:54:28 -08:00
Pascal Vizeli 4731f7c721
Hass.io allow to reset password with CLI ()
* Hass.io allow to reset passwort with CLI

* Add improvments

* fix comments

* fix lint

* Fix tests

* more tests

* Address comments

* sort imports

* fix test python37
2020-01-14 23:49:56 +01:00
Ville Skyttä 5216477353
Be consistent with Home Assistant and Hass.io spelling ()
* Be consistent with Home Assistant spelling

* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
Ville Skyttä e6388e186c
Remove unnecessary string literal concatenations () 2020-01-02 21:17:10 +02:00
Franck Nijhof 0fb5fbd85c Migrate hassio tests from coroutine to async/await () 2020-01-01 17:13:43 -06:00
Bas Nijholt 00dc721609 sort imports according to PEP8 for hassio () 2019-12-08 16:33:22 +01:00
Paulus Schoutsen 3231e22ddf
Remove direct authentication via trusted networks or API password ()
* Remove direct authentication via trusted networks and API password

* Fix tests
2019-10-14 14:56:45 -07:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen 820b381a8d
Update Hass.io when core config is updated ()
* Update Hass.io when core config is updated

* Lint

* Fix tests

* Lint sigh
2019-06-10 16:05:43 -07:00
Pascal Vizeli 3e443d253c
Hass.io Add-on panel support for Ingress ()
* 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 ()
* Fix ingress bug with Firefox

* Fix mock

* Fix tests

* Fix test lint
2019-04-15 15:27:13 -07:00
Pascal Vizeli 9bb88a6143
Fix ingress routing with / () 2019-04-04 17:43:18 +02:00
Pascal Vizeli beb6ddfa68
Change URL handling () 2019-04-04 11:10:44 +02:00
Pascal Vizeli e708032669 Support GET params for websocket ingress path () 2019-04-01 17:41:08 -07:00
Pascal Vizeli 6829ecad9d
Hass.io ingress ()
* 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
Paulus Schoutsen 1766536812
Fix test name () 2019-03-26 15:24:28 -07:00
Pascal Vizeli 3fddf5df08 Enable hass.io panel without ping ()
* Enable hass.io panel without ping

* fix tests
2019-03-26 07:38:25 -07:00
Paulus Schoutsen f1a0ad9e4a
Frontend indicate require admin ()
* Allow panels to indicate they are meant for admins

* Panels to indicate when they require admin access

* Do not return admin-only panels to non-admin users

* Fix flake8
2019-03-25 10:04:35 -07:00
Pascal Vizeli ecfe0fc3dd Remove config check over supervisor ()
* Remove config check over supervisor

* Fix lint

* Fix tests
2019-03-18 16:58:48 -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
Paulus Schoutsen 12d16d9bdc
Update test_auth.py 2019-01-11 12:55:23 -08:00
Paulus Schoutsen b81260e912 Fix tests 2019-01-11 10:10:36 -08:00
Paulus Schoutsen 7be197b845 Update test_http.py 2019-01-11 10:00:38 -08:00
Paulus Schoutsen fd21d6cc9d Add Hass.io user headers to supervisor proxy 2019-01-11 10:00:38 -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
Otto Winter eec4564c71 Show ANSI color codes in logs in Hass.io ()
* Hass.io: Show ANSI color codes in logs

* Lint

* Fix test

* Lint
2018-12-02 15:46:14 +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
Pascal Vizeli f5d3aa1826 Hass.io auth/sso part2 ()
* Update discovery.py

* Create const.py

* Update auth.py

* Update const.py

* Update const.py

* Update http.py

* Update handler.py

* Update auth.py

* Update auth.py

* Update test_auth.py
2018-10-11 10:55:38 +02:00
Pascal Vizeli 3f87d41381
Fix auth for hass.io ()
* Update test_auth.py

* Update auth.py

* Update test_auth.py
2018-10-11 01:02:00 +02:00
Pascal Vizeli 40e0966d7f Hassio auth ()
* Create auth.py

* Update auth.py

* Update auth.py

* Update __init__.py

* Update auth.py

* Update auth.py

* Update auth.py

* Update auth.py

* Update auth.py

* Update auth.py

* Update auth.py

* Update auth.py

* Update auth.py

* Add tests

* Update test_auth.py

* Update auth.py

* Update test_auth.py

* Update auth.py
2018-10-10 14:07:51 +02:00
Pascal Vizeli 83dd961fde Fix hassio discovery ()
* Update discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Fix tests

* fix lint
2018-10-10 13:50:11 +02:00
Pascal Vizeli 704c9d8582
Add support for Hass.io discovery feature for Add-ons ()
* Update handler.py

* Update __init__.py

* Update handler.py

* Update __init__.py

* Create discovery.py

* Update handler.py

* Update discovery.py

* Update __init__.py

* Update discovery.py

* Update discovery.py

* Update discovery.py

* Update struct

* Update handler.py

* Update discovery.py

* Update discovery.py

* Update discovery.py

* Update __init__.py

* Update discovery.py

* Update discovery.py

* Update discovery.py

* Update discovery.py

* Update discovery.py

* Update discovery.py

* Update discovery.py

* Update discovery.py

* Update __init__.py

* Update discovery.py

* fix lint

* Update discovery.py

* cleanup old discovery

* Update discovery.py

* Update discovery.py

* Fix lint

* Fix tests

* Write more tests with new functions

* Update test_handler.py

* Create test_discovery.py

* Update conftest.py

* Update test_discovery.py

* Update conftest.py

* Update test_discovery.py

* Update conftest.py

* Update test_discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Update test_discovery.py

* Fix test

* Add test

* fix lint

* Update handler.py

* Update discovery.py

* Update test_discovery.py

* fix lint

* Lint
2018-10-03 13:10:38 +02:00
Pascal Vizeli d376049a3f Use one regex for Hass.io URL check () 2018-09-19 12:57:55 +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
Paulus Schoutsen 8213b1476f
WIP: Hass.io sent token to supervisor ()
Hass.io sent token to supervisor
2018-07-23 14:14:57 +02:00
Pascal Vizeli 40c8f5f70e
Fix panel URL authentication for Hass.io ()
* Update http.py

* Update http.py

* fix tests

* Update test_http.py
2018-06-17 20:34:47 +02:00
Paulus Schoutsen 8c7f0669c6 Allow hassio frontend development ()
* Allow hassio frontend development

* Fix tests
2018-05-29 08:51:08 +02:00
Paulus Schoutsen b6e4a7771a
Allow Hass.io panel dir () 2018-05-27 17:17:19 -04:00
Paulus Schoutsen 89a19c89a7 Fix aiohttp deprecation warnings ()
* Fix aiohttp deprecation warnings

* Fix Ring deprecation warning

* Lint
2018-03-15 21:49:49 +01:00
Pascal Vizeli b228695907
Hassio cleanup part2 ()
* Update handler.py

* Update handler.py

* Update __init__.py

* Update handler.py

* Update handler.py

* Update __init__.py

* Update tests
2018-02-21 22:42:55 +01:00
Pascal Vizeli 4f96eeb06e Cleanup hass.io component ()
* Cleanup hass.io component

* fix lint

* Fix all tests

* Fix lint

* fix lint

* fix doc lint
2018-02-20 15:24:31 -08:00