HA4IoT.Hardware.LogicalBinaryOutput.CoerceState C# (CSharp) Method

CoerceState() private method

private CoerceState ( BinaryState state ) : BinaryState
state BinaryState
return BinaryState
        private BinaryState CoerceState(BinaryState state)
        {
            if (InvertValue)
            {
                return state == BinaryState.High ? BinaryState.Low : BinaryState.High;
            }

            return state;
        }