Server in Asyncio green mode doesn't change state to ALARM with AttrQuality
Hello.
There is a strange behavior of DeviceServer in Asyncio mode (without any other async features). When I apply alarm properties for attribute, I expect state to switch from ON to ALARM if attr value cross these borders, like it described here
I've tested it with PyTango 9.3.6 (cppTango 9.3.5) and 9.4.1 (cppTango 9.4.1), same result.
Server code:
from tango.server import Device, attribute
from tango import DevState, GreenMode
class PowerSupply(Device):
# comment/uncomment string below to test
green_mode = GreenMode.Asyncio
def init_device(self):
super().init_device()
self.set_state(DevState.ON)
@attribute(max_alarm=0)
def test_attribute(self):
return 42
if __name__ == "__main__":
PowerSupply.run_server()