From 1ba7928970b9dfe6bbe2e32b8321b5dcfddf5ac4 Mon Sep 17 00:00:00 2001 From: Andrea Settimi Date: Fri, 29 Nov 2024 16:10:52 +0100 Subject: [PATCH] FIX: executed to state key for exporter py --- py/pypi/ACPy/ac_acim.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/py/pypi/ACPy/ac_acim.py b/py/pypi/ACPy/ac_acim.py index eb0d37232..1f54704ac 100644 --- a/py/pypi/ACPy/ac_acim.py +++ b/py/pypi/ACPy/ac_acim.py @@ -39,15 +39,15 @@ def add_timber(self, guid): timber_et = ET.SubElement(self._root, "timber") timber_et.set("id", guid) self._timber_ets[guid] = timber_et - timber_executed_et = ET.SubElement(timber_et, "executed") - timber_executed_et.text = str(__ACIM_STATE__[0]) + timber_state_et = ET.SubElement(timber_et, "state") + timber_state_et.text = str(__ACIM_STATE__[0]) timber_current_et = ET.SubElement(timber_et, "current") timber_current_et.text = "__NOT_SET__" def add_timber_state(self, guid, state_value): """ Add the execution state of the object, by default False """ - executed_et = ET.SubElement(self._timber_ets[guid], "executed") - executed_et.text = str(__ACIM_STATE__[state_value]) + state_et = ET.SubElement(self._timber_ets[guid], "state") + state_et.text = str(__ACIM_STATE__[state_value]) def add_bbox(self, guid, corners): """ @@ -182,4 +182,4 @@ def _prettify(self, elem, level=0): elem.tail = i else: if level and (not elem.tail or not elem.tail.strip()): - elem.tail = i \ No newline at end of file + elem.tail = i