Make it possible to list debug traces for a specific automation (#47744)

This commit is contained in:
Erik Montnemery
2021-03-16 00:51:04 +01:00
committed by GitHub
parent 5f627df6f8
commit f82e59c32a
6 changed files with 86 additions and 39 deletions

View File

@@ -137,8 +137,8 @@ SCRIPT_DEBUG_CONTINUE_ALL = "script_debug_continue_all"
def action_trace_append(variables, path):
"""Append a TraceElement to trace[path]."""
trace_element = TraceElement(variables)
trace_append_element(trace_element, path, ACTION_TRACE_NODE_MAX_LEN)
trace_element = TraceElement(variables, path)
trace_append_element(trace_element, ACTION_TRACE_NODE_MAX_LEN)
return trace_element