Skip to content
Snippets Groups Projects
Commit e1617e28 authored by Jan David Mol's avatar Jan David Mol
Browse files

Fix cleaning up event unsubscription maintenance

parent 60c7c5ef
Branches
Tags
1 merge request!545Fix cleaning up event unsubscription maintenance
...@@ -137,9 +137,10 @@ class TemperatureManager(LOFARDevice): ...@@ -137,9 +137,10 @@ class TemperatureManager(LOFARDevice):
super().configure_for_off() super().configure_for_off()
# unsubscribe from all events # unsubscribe from all events
for dev_attr in self.temp_error_attrs.values(): for attr_name in list(self.temp_error_attrs.keys()):
dev_attr = self.temp_error_attrs[attr_name]
dev_attr.proxy.unsubscribe_event(dev_attr.subscription_id) dev_attr.proxy.unsubscribe_event(dev_attr.subscription_id)
del dev_attr del self.temp_error_attrs[attr_name]
is_alarming_R = attribute( is_alarming_R = attribute(
dtype=bool, dtype=bool,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment