diff --git a/RCUSCC/RCUSCC/RCUSCC.py b/RCUSCC/RCUSCC/RCUSCC.py index 8af704045dd50bec71dee4b91d885b52e5fa953f..c6bc06b4dfc5403a5b4438ecc0c293352eee50bc 100644 --- a/RCUSCC/RCUSCC/RCUSCC.py +++ b/RCUSCC/RCUSCC/RCUSCC.py @@ -270,7 +270,7 @@ class RCUSCC(Device): self.name_space_index = 2 self.obj_node = self.client.get_objects_node() - self.pcc_node = self.obj_node.get_child([ "{}:PCC".format(self.name_space_index)]) + self.pcc_node = self.obj_node.get_child(["{}:PCC".format(self.name_space_index)]) self.debug_stream("Mapping OPC-UA MP/CP to attributes...") @@ -306,21 +306,21 @@ class RCUSCC(Device): self.attribute_mapping["RCU01_Dither2_Frequency_RW"] = self.pcc_node.get_child(["{}:RCU01_Dither2_Frequency_RW".format(self.name_space_index)]) - self.attribute_mapping["RCU01_LED0_R"] = self.pcc_node.get_child([ "{}:RCU01_LED0_R".format(self.name_space_index)]) + self.attribute_mapping["RCU01_LED0_R"] = self.pcc_node.get_child(["{}:RCU01_LED0_R".format(self.name_space_index)]) - self.attribute_mapping["RCU01_LED0_RW"] = self.pcc_node.get_child([ "{}:RCU01_LED0_RW".format(self.name_space_index)]) + self.attribute_mapping["RCU01_LED0_RW"] = self.pcc_node.get_child(["{}:RCU01_LED0_RW".format(self.name_space_index)]) - self.attribute_mapping["RCU01_Pwr_dig_R"] = self.pcc_node.get_child([ "{}:RCU01_Pwr_dig_R".format(self.name_space_index)]) + self.attribute_mapping["RCU01_Pwr_dig_R"] = self.pcc_node.get_child(["{}:RCU01_Pwr_dig_R".format(self.name_space_index)]) - self.attribute_mapping["RCU01_Pwr_dig_RW"] = self.pcc_node.get_child([ "{}:RCU01_Pwr_dig_RW".format(self.name_space_index)]) + self.attribute_mapping["RCU01_Pwr_dig_RW"] = self.pcc_node.get_child(["{}:RCU01_Pwr_dig_RW".format(self.name_space_index)]) - self.attribute_mapping["RCU01_Temp_R"] = self.pcc_node.get_child([ "{}:RCU01_Temp_R".format(self.name_space_index)]) + self.attribute_mapping["RCU01_Temp_R"] = self.pcc_node.get_child(["{}:RCU01_Temp_R".format(self.name_space_index)]) - self.attribute_mapping["RCU01_Temp_RW"] = self.pcc_node.get_child([ "{}:RCU01_Temp_RW".format(self.name_space_index)]) + self.attribute_mapping["RCU01_Temp_RW"] = self.pcc_node.get_child(["{}:RCU01_Temp_RW".format(self.name_space_index)]) - self.attribute_mapping["RCU01_RCU_off"] = self.pcc_node.get_child([ "{}:RCU01_RCU_off".format(self.name_space_index)]) + self.attribute_mapping["RCU01_RCU_off"] = self.pcc_node.get_child(["{}:RCU01_RCU_off".format(self.name_space_index)]) - self.attribute_mapping["RCU01_RCU_on"] = self.pcc_node.get_child([ "{}:RCU01_RCU_on".format(self.name_space_index)]) + self.attribute_mapping["RCU01_RCU_on"] = self.pcc_node.get_child(["{}:RCU01_RCU_on".format(self.name_space_index)]) self.debug_stream("Mapping OPC-UA MP/CP to attributes done.")