Commit 190ac683 authored by Čermák Petr's avatar Čermák Petr
Browse files

Last fix

parent ae1bf584
......@@ -108,7 +108,8 @@ class XRaySource(base.DiscreteOutput):
_state = None
_doorsclosed = None
_status = "" # Infocus/Warmup
attributes['value'] = base.DiscreteOutput.attributes['value'].copy()
attributes['value'].disallowed_write = (
states.OFF, states.FAULT, states.ALARM, states.INIT, states.UNKNOWN)
......@@ -214,4 +215,4 @@ class XRaySource(base.DiscreteOutput):
self._iodev.Communicate(f'XRAY {value}')
else:
raise InvalidValue(f"Can't write {value} as target for this device.")
self.state()
\ No newline at end of file
self.state()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment