def METHOD_NAME(self, ev_num: int) -> SocUpdateData:
    for cp in list(data.data.cp_data.values()):
        if not isinstance(cp, AllChargepoints):
            if cp.data.set.charging_ev == ev_num:
                plug_state = cp.data.get.plug_state
                charge_state = cp.data.get.charge_state
                imported_since_plugged = cp.data.set.log.imported_since_plugged
                battery_capacity = cp.data.set.charging_ev_data.ev_template.data.battery_capacity
                break
    else:
        plug_state = False
        charge_state = False
        imported_since_plugged = 0
        battery_capacity = data.data.ev_data[f"ev{ev_num}"].ev_template.data.battery_capacity
    return SocUpdateData(plug_state=plug_state,
                         charge_state=charge_state,
                         imported_since_plugged=imported_since_plugged,
                         battery_capacity=battery_capacity)