Commit graph

25 commits

Author SHA1 Message Date
J. Nick Koston
4798f37c6e
Convert States to dicts via as_dict only once ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-10-05 09:18:57 -05:00
J. Nick Koston
e08ee282ab
Abort execution of template renders that overwhelm the system () 2020-09-28 14:43:22 +02:00
J. Nick Koston
57b7559832
Ensure all jinja2 errors are trapped and displayed in the developer tools ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-26 17:03:32 -05:00
J. Nick Koston
741487a1fc
Return the listeners with the template result for the websocket api () 2020-09-11 13:18:40 -05:00
Paulus Schoutsen
2a1fe9d29a
Add websocket trigger/condition commands () 2020-08-24 23:01:57 +02:00
J. Nick Koston
f560256546
Update websocket api to use async_track_template_result () 2020-08-21 14:04:29 +02:00
Paulus Schoutsen
3dc79aa60a
Track entity sources ()
Co-authored-by: David Mulcahey <david.mulcahey@me.com>
2020-08-19 14:57:38 +02:00
Paulus Schoutsen
8ed1a29c82
Drop white blacklist pt1 () 2020-07-13 17:43:11 +02:00
Aaron Bach
7968cd650a
Add concept of allowed external URLs to config ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-06-24 17:37:01 -07:00
Paulus Schoutsen
9f1bffe3be
Add command to get integration manifests ()
* Add command to get integration manifests

* Add is_built_in value to manifest

* Update APIs
2020-04-15 13:36:16 -07:00
Bas Nijholt
3df40c7a16 Sort imports according to PEP8 for websocket_api () 2019-12-09 12:30:23 +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
Thomas Lovén
e7e083c547 Websocket call for rendering jinja2 templates subscription ()
* Websocket call for rendering jinja2 templates

* Address review comments

* Address review comments

* Allow MATCH_ALL, but ignore it.

* Always register unsub method.
2019-08-10 12:46:49 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ()
* Don't pass in loop

* Revert some changes

* Lint + Axis revert

* reinstate loop

* Fix a test

* Set loop

* Update camera.py

* Lint
2019-05-22 21:09:59 -07:00
Paulus Schoutsen
de1fd5a7fa
WS: Improve service calling errors ()
* WS: Improve service calling errors

* Docstyle

* Types

* Update text
2019-05-14 07:09:11 +02:00
Paulus Schoutsen
29131a655d
Allow non-admins to listen to certain events () 2019-03-17 19:13:06 -07:00
Paulus Schoutsen
fc1ee9be43
Use new style for built-in ws commmands ()
* Use new style for built-in ws commmands

* Lint
2019-03-05 19:31:26 -08:00
Jason Hu
f1b867dccb Re-thrown exception occurred in the blocking service call ()
* Rethrown exception occurred in the actual service call

* Fix lint and test
2019-03-01 23:09:31 -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
a2386f871d Forbid float NaN in JSON () 2018-11-28 13:25:23 +01:00
Paulus Schoutsen
9d7b1fc3a7
Enforce permissions for Websocket API ()
* Handle unauth exceptions in websocket

* Enforce permissions in websocket API
2018-11-27 10:12:31 +01:00
Paulus Schoutsen
2e6346ca43 Break up websocket 2 ()
* Break up websocket 2

* Lint+Test

* Lintttt

* Rename
2018-10-01 16:09:31 +02:00
Paulus Schoutsen
22a80cf733
Break up websocket component ()
* Break up websocket component

* Lint
2018-10-01 11:21:00 +02:00