Commit Graph
14 Commits
Author SHA1 Message Date
Marc Mueller 2c06d4fcb9 Add empty line after module docstring (2) [components] (#112736) 2024-03-08 19:15:59 +01:00
Marc Mueller ec708811d0 Enable strict typing for trace (#107945) 2024-01-14 09:39:22 +01:00
epenetandMarc Mueller 2c43606922 Add websocket type hints in components (#80654)
* Add websocket type hints in components

* Adjust

* Apply suggestion

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-10-20 13:41:14 +02:00
epenet 60640b4436 Add websocket type hints in components (#80533) 2022-10-18 22:15:23 -04:00
epenet 253d355526 Remove unused mypy ignore statements (#78292) 2022-09-12 09:25:11 -04:00
epenet 8ed689fede Add new rule to enforce relative imports in pylint (#77358)
* Add new rule to enforce relative imports in pylint

* Early return

* Adjust components
2022-08-29 08:55:32 +02:00
Erik Montnemery 961ee717ef Store automation and script traces (#56894)
* 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 ce64690817 Make number of stored traces configurable (#49728) 2021-04-27 10:27:12 -07:00
Jason 7cc857a298 Add custom JSONEncoder for subscribe_trigger WS endpoint (#48664) 2021-04-09 20:47:10 -07:00
Erik Montnemery e2f8bce0a0 Improve error handling for WS API trace/get (#48502) 2021-03-31 15:58:36 +02:00
Erik Montnemery 14ef0531f0 Address review comments from trace refactoring PRs (#48288) 2021-03-29 08:09:14 +02:00
Erik Montnemery 8896ae0d56 Add support for tracing script execution (#48276)
* Add support for tracing script execution

* Tweak
2021-03-24 17:56:22 +01:00
Erik Montnemery 9f8b697e64 Refactor tracing: Prepare for tracing of scripts (#48231) 2021-03-23 14:53:38 -07:00
Erik Montnemery a49989241a Refactor tracing: Move trace support to its own integration (#48224) 2021-03-22 19:19:38 +01:00