L2SS-1966: Add mutex around state commands in AsyncDevice

  • Refactors device_decorators to work around both sync and async functions.
  • Moves log_exceptions from lofar_logging to device_decorators.
  • Cleaned up decorators & call chain for On()/_On()/configure_for_on() et al.
  • Add mutex guard around the main comands for AsyncDevice.
  • Replaced incidental acquire/release call on asyncio.Lock with async with.

Closes L2SS-1966

Edited by Jan David Mol

Merge request reports

Loading