diff --git a/devices/clients/statistics_client.py b/devices/clients/statistics_client.py index 5a1d01e037be134e44d4040a0dd7be716bf57f82..3fd470fbf0319e45242abbc3a79362584628f844 100644 --- a/devices/clients/statistics_client.py +++ b/devices/clients/statistics_client.py @@ -17,7 +17,7 @@ class StatisticsClient(AsyncCommClient): and provides a CommClient interface to expose points to a Device Server. """ - def __init__(self, collector, udp_options, tcp_options, fault_func, queuesize=1024, event_loop=None): + def __init__(self, collector, udp_options, tcp_options, fault_func, event_loop=None, queuesize=1024): """ Create the statistics client and connect() to it and get the object node. diff --git a/devices/devices/sdp/statistics.py b/devices/devices/sdp/statistics.py index a5303a7b52148b0be23fe4bbca672ff4514584a5..af1cf0201fd4dc244b8495730660b7c84398a518 100644 --- a/devices/devices/sdp/statistics.py +++ b/devices/devices/sdp/statistics.py @@ -146,11 +146,6 @@ class Statistics(opcua_device, metaclass=ABCMeta): await self.statistics_client.start() - # tie attributes to client - for i in self.attr_list(): - if i.comms_id == StatisticsClient: - i.set_comm_client(self.statistics_client) - # -------- # Commands # --------