Skip to content
Snippets Groups Projects

FIX: compare function did not check units

Merged Alexander Schlemmer requested to merge f-compare-unit into dev
1 unresolved thread
Files
3
+ 5
0
@@ -637,6 +637,11 @@ def compare_entities(old_entity: Entity, new_entity: Entity):
newdiff["properties"][prop.name]["datatype"] = \
matching[0].datatype
if (prop.unit != matching[0].unit):
Please register or sign in to reply
olddiff["properties"][prop.name]["unit"] = prop.unit
newdiff["properties"][prop.name]["unit"] = \
matching[0].unit
if (prop.value != matching[0].value):
olddiff["properties"][prop.name]["value"] = prop.value
newdiff["properties"][prop.name]["value"] = \
Loading