From b8df3a591dec1405944fdbec14b01abfbda41476 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Thu, 22 Feb 2024 10:04:13 +0100
Subject: [PATCH] expose whether we're transitioning state

---
 .../tangostationcontrol/devices/station_manager.py            | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tangostationcontrol/tangostationcontrol/devices/station_manager.py b/tangostationcontrol/tangostationcontrol/devices/station_manager.py
index f7963354c..7e612a188 100644
--- a/tangostationcontrol/tangostationcontrol/devices/station_manager.py
+++ b/tangostationcontrol/tangostationcontrol/devices/station_manager.py
@@ -76,6 +76,10 @@ class StationManager(AsyncDevice):
     def station_state_R(self):
         return self.station_state.name
 
+    @attribute(dtype=bool, fisallowed="is_attribute_access_allowed")
+    def station_state_transitioning_R(self):
+        return self.transition_lock and self.transition_lock.locked()
+
     @attribute(dtype=str, fisallowed="is_attribute_access_allowed")
     def last_requested_transition_R(self):
         return self.last_requested_transition or ""
-- 
GitLab