def _set_default_construction_id(construction_id: int, subcategory_id: int) -> int:
    """Set the default construction ID for switches.

    :param construction_id: the current construction ID.
    :param subcategory_id: the subcategory ID of the switch with missing defaults.
    :return: _construction_id
    :rtype: int
    """
    if construction_id > 0:
        return construction_id

    try:
        return {
            1: 1,
            2: 1,
        }[subcategory_id]
    except KeyError:
        return 0