Commit dce7190d authored by Matias Guijarro's avatar Matias Guijarro

fix regulation '.add_counter' call

parent b3f69f86
......@@ -197,9 +197,7 @@ class Input(SamplingCounterController):
# useful attribute for a temperature controller writer
self._attr_dict = {}
self.add_counter(
SamplingCounter(self.name, self, unit=config.get("unit", "N/A"))
)
self.add_counter(SamplingCounter, self.name, unit=config.get("unit", "N/A"))
def read_all(self, *counters):
return [self.read()]
......@@ -322,9 +320,7 @@ class Output(SamplingCounterController):
# useful attribute for a temperature controller writer
self._attr_dict = {}
self.add_counter(
SamplingCounter(self.name, self, unit=config.get("unit", "N/A"))
)
self.add_counter(SamplingCounter, self.name, unit=config.get("unit", "N/A"))
def read_all(self, *counters):
return [self.read()]
......@@ -665,9 +661,7 @@ class Loop(SamplingCounterController):
self.reg_plot = None
self.add_counter(
SamplingCounter(self.name, self, unit=config.get("unit", "N/A"))
)
self.add_counter(SamplingCounter, self.name, unit=config.get("unit", "N/A"))
# ----------- BASE METHODS -----------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment