Commit Graph

18 Commits (e9a9ab9025c16ed186599d605008e3a7692a805b)

Author SHA1 Message Date
epenet 4dba2a85db
Improve type hints in trace () 2022-09-15 11:57:48 -04:00
epenet 219cee2ca9
Move Trace classes to separate module () 2022-09-14 09:23:29 -04:00
epenet 69b59c9d59
Improve type hints in trace () 2022-09-13 09:09:38 -04:00
epenet 16900dcef1
Make Store a generic class () 2022-07-09 22:32:57 +02:00
epenet 18056f3a8a
Add init type hints [t-u] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-01 22:06:11 -08:00
Marc Mueller 70469e0979
Use assignment expressions 23 () 2021-10-22 11:13:05 +02:00
Erik Montnemery 961ee717ef
Store automation and script traces ()
* Store automation and script traces

* Pylint

* Deduplicate code

* Fix issues when no stored traces are available

* Store serialized data for restored traces

* Update WS API

* Update test

* Restore context

* Improve tests

* Add new test files

* Rename restore_traces to async_restore_traces

* Refactor trace.websocket_api

* Defer loading stored traces

* Lint

* Revert refactoring which is no longer needed

* Correct order when restoring traces

* Apply suggestion from code review

* Improve test coverage

* Apply suggestions from code review
2021-10-19 10:23:23 +02:00
Erik Montnemery 061c335673
Remove some redundant code from trace () 2021-10-01 08:08:43 -07:00
Michael 9eecd90afc
Add constructor return type in integrations T-Z () 2021-05-20 17:00:19 +02:00
Erik Montnemery ce64690817
Make number of stored traces configurable () 2021-04-27 10:27:12 -07:00
Marc Mueller c07646db5d
Update typing syntax ()
* Update typing syntax

* Replace typing imports with ones from collections where possible

* Changes after review
2021-04-20 17:40:41 +02:00
Erik Montnemery 76d0f93ec1
Include blueprint input in automation trace () 2021-04-01 13:34:47 -07:00
Erik Montnemery 9f481e1642
Include script script_execution in script and automation traces () 2021-04-01 09:42:23 -07:00
Erik Montnemery 7534b54e4e
Merge condition and action traces () 2021-03-29 14:06:49 -07:00
Erik Montnemery 14ef0531f0
Address review comments from trace refactoring PRs () 2021-03-29 08:09:14 +02:00
Erik Montnemery c6a20d0fc1
Improve traces for nested script runs () 2021-03-26 10:14:01 -07:00
Erik Montnemery 8896ae0d56
Add support for tracing script execution ()
* Add support for tracing script execution

* Tweak
2021-03-24 17:56:22 +01:00
Erik Montnemery a49989241a
Refactor tracing: Move trace support to its own integration () 2021-03-22 19:19:38 +01:00