mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Remove some redundant code from trace (#56883)
This commit is contained in:
parent
e4f15c42e0
commit
061c335673
@ -109,8 +109,7 @@ class ActionTrace:
|
|||||||
"context": self.context,
|
"context": self.context,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
if self._error is not None:
|
|
||||||
result["error"] = str(self._error)
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def as_short_dict(self) -> dict[str, Any]:
|
def as_short_dict(self) -> dict[str, Any]:
|
||||||
@ -135,7 +134,5 @@ class ActionTrace:
|
|||||||
}
|
}
|
||||||
if self._error is not None:
|
if self._error is not None:
|
||||||
result["error"] = str(self._error)
|
result["error"] = str(self._error)
|
||||||
if last_step is not None:
|
|
||||||
result["last_step"] = last_step
|
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user