as_state

lsst.ts.salobj.as_state(value)

Convert an int (or State) to a State.

Return the original value if no match.