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

expose whether we're transitioning state

parent 5bd0d41f
No related branches found
No related tags found
1 merge request!852Rollout fixes for v0.28.1
...@@ -76,6 +76,10 @@ class StationManager(AsyncDevice): ...@@ -76,6 +76,10 @@ class StationManager(AsyncDevice):
def station_state_R(self): def station_state_R(self):
return self.station_state.name 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") @attribute(dtype=str, fisallowed="is_attribute_access_allowed")
def last_requested_transition_R(self): def last_requested_transition_R(self):
return self.last_requested_transition or "" return self.last_requested_transition or ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment