Changed _transform function name + anonymous setup_info key
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user