def state(s: int) -> str:
    """
    Convert state number to name
    """
    if s >= 0 and s <= 14:
        states = (
            'Ignore',
            'Requested',
            'Building',
            'Unresourced',
            'Running',
            'Quiesce',
            'Quiesced',
            'Resart',
            'Scrub',
            'Scrub_queue',
            'Update',
            'Updating',
            'Quiescing',
            'Restarting',
            'Scrub_prep',
        )
        return states[s]
    elif s is None:
        return 'None'
    else:
        return f'Error: {str(s)}  is not a valid state.'