entangle: fix tango guards for pytango 9.3

Change-Id: I666969f9c798971d5cd8a0c2f6564067ac3cde72
Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/31327
Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
Reviewed-by: Georg Brandl <g.brandl@fz-juelich.de>
This commit is contained in:
Alexander Zaft 2023-06-12 16:16:06 +02:00 committed by Markus Zolliker
parent 7c95f1f8ee
commit 8dc9c57e9d

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# *****************************************************************************
#
# This program is free software; you can redistribute it and/or modify it under
@ -257,12 +256,12 @@ class BasePyTangoDevice:
Wraps command execution and attribute operations of the given
device with logging and exception mapping.
"""
dev.command_inout = self._applyGuardToFunc(dev.command_inout)
dev.write_attribute = self._applyGuardToFunc(dev.write_attribute,
dev.__dict__['command_inout'] = self._applyGuardToFunc(dev.command_inout)
dev.__dict__['write_attribute'] = self._applyGuardToFunc(dev.write_attribute,
'attr_write')
dev.read_attribute = self._applyGuardToFunc(dev.read_attribute,
dev.__dict__['read_attribute'] = self._applyGuardToFunc(dev.read_attribute,
'attr_read')
dev.attribute_query = self._applyGuardToFunc(dev.attribute_query,
dev.__dict__['attribute_query'] = self._applyGuardToFunc(dev.attribute_query,
'attr_query')
return dev