as_state

lsst.ts.salobj.as_state(value: int | lsst.ts.salobj.sal_enums.State) int | lsst.ts.salobj.sal_enums.State

Convert an int (or State) to a State.

Return the original value if no match.