From 8959e4a520e3d390cdca2a40f74ffc2b38cddda4 Mon Sep 17 00:00:00 2001 From: l_samenv Date: Mon, 19 Aug 2024 09:17:12 +0200 Subject: [PATCH] Changed _transform function name + anonymous setup_info key --- influxdb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/influxdb.py b/influxdb.py index 69e7258..0a8106c 100644 --- a/influxdb.py +++ b/influxdb.py @@ -192,9 +192,9 @@ class InfluxDataGetter: available_varirables = [] added_names = [] for setup_info_dict in all_setup_info_dict: - for (setup_info_variable_name, content) in setup_info_dict.items(): + for (_, content) in setup_info_dict.items(): if content[0] != "nicos.devices.secop.devices.SecopDevice": - name = self._transform_setup_info_variable_name_to_influx(content[1]["secop_module"]) + name = self._transform_secop_module_name_to_influx(content[1]["secop_module"]) if name not in added_names: available_varirables.append( { @@ -207,7 +207,7 @@ class InfluxDataGetter: added_names.append(name) return available_varirables - def _transform_setup_info_variable_name_to_influx(self, secop_module_name): + def _transform_secop_module_name_to_influx(self, secop_module_name): """ Transforms the name of the variable available in the setup_info dict into the Influx name. Lowers the secop_module_name and adds "nicos/se_" as prefix