changed selection label to unit in graphics

This commit is contained in:
l_samenv
2024-08-19 16:27:19 +02:00
parent fa88f374fd
commit 6ebcacdf12
3 changed files with 8 additions and 2 deletions

View File

@@ -452,7 +452,7 @@ class InfluxDataGetter:
variable ({"name":(str), "label":(str), "unit":(str)[,"has_potential_target":(bool)]}) : a dictionnary containing the Influx name of the corresponding variable out of the setup_info dict,
the label to display in the Web GUI, its unit and possibly a boolean value indicating if the variable has a target available.
"""
key = variable["cat"]+variable["unit"]
key = variable["cat"]+"_"+variable["unit"] if variable["cat"] != "" else variable["unit"]
if key not in groups.keys():
groups[key] = {"tag":key, "unit":variable["unit"], "curves":[]} #tag is set to cat+unit while client is not modified
groups[key]["curves"].append({