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

Merge branch 'L2SS-610-self-proxy-twice' into 'master'

L2SS-610: L2SS-611: Prevent assigning self.proxy twice

Closes L2SS-610 and L2SS-611

See merge request !235
parents 12603672 3ec41077
No related branches found
No related tags found
1 merge request!235L2SS-610: L2SS-611: Prevent assigning self.proxy twice
...@@ -93,15 +93,6 @@ class lofar_device(Device, metaclass=DeviceMeta): ...@@ -93,15 +93,6 @@ class lofar_device(Device, metaclass=DeviceMeta):
# trigger a write_{name} call. See https://www.tango-controls.org/community/forum/c/development/c/accessing-own-deviceproxy-class/?page=1#post-2021 # trigger a write_{name} call. See https://www.tango-controls.org/community/forum/c/development/c/accessing-own-deviceproxy-class/?page=1#post-2021
self.proxy = DeviceProxy(self.get_name()) self.proxy = DeviceProxy(self.get_name())
# register a proxy to ourselves, to interact with
# our attributes and commands as a client would.
#
# this is required to get/set attributes.
#
# we cannot write directly to our attribute, as that would not
# trigger a write_{name} call. See https://www.tango-controls.org/community/forum/c/development/c/accessing-own-deviceproxy-class/?page=1#post-2021
self.proxy = DeviceProxy(self.get_name())
@log_exceptions() @log_exceptions()
def delete_device(self): def delete_device(self):
"""Hook to delete resources allocated in init_device. """Hook to delete resources allocated in init_device.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment