as_state

lsst.ts.salobj.as_state(value: Union[int, lsst.ts.salobj.sal_enums.State]) Union[int, lsst.ts.salobj.sal_enums.State]

Convert an int (or State) to a State.

Return the original value if no match.