Add task_result variable and update

custom_component_update function
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-28 15:18:00 -03:00
commit 732f64bf23

View file

@ -89,6 +89,7 @@ async def process(
if flow.data is None:
raise ValueError(f"Flow {flow_id} has no data")
graph_data = flow.data
task_result = None
if tweaks:
try:
graph_data = process_tweaks(graph_data, tweaks)
@ -249,3 +250,5 @@ async def custom_component_update(
return component_node
# Update the field
return component_node
# Update the field
return component_node